about summary refs log tree commit diff
path: root/pkgs/tools/X11/setroot
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2021-02-16 18:48:46 +0700
committerBen Siraphob <bensiraphob@gmail.com>2021-02-20 01:01:46 +0700
commit223f25cf4a2ca9e2b35801eb0c43540151df89b9 (patch)
treea43b8bfb6b924ef794f2cba0867df97f2ce1b70c /pkgs/tools/X11/setroot
parentad4db3f4d8ae54482c63c31c14921cb73953548d (diff)
treewide: add targetPrefix to hardcoded references to CC=cc
Diffstat (limited to 'pkgs/tools/X11/setroot')
-rw-r--r--pkgs/tools/X11/setroot/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/X11/setroot/default.nix b/pkgs/tools/X11/setroot/default.nix
index e5a461b0e0e6b..014ac4c54be78 100644
--- a/pkgs/tools/X11/setroot/default.nix
+++ b/pkgs/tools/X11/setroot/default.nix
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
   buildInputs = [ libX11 imlib2 ]
     ++ lib.optional enableXinerama libXinerama;
 
-  buildFlags = [ "CC=cc" (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
+  buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
 
   installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];