diff --git a/pkgs/tools/X11/setroot/default.nix b/pkgs/tools/X11/setroot/default.nix index 74e0ed8d029c..81b888ccb783 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 ] ++ stdenv.lib.optional enableXinerama libXinerama; - buildFlags = if enableXinerama then "xinerama=1" else "xinerama=0"; + buildFlags = "CC=cc " + (if enableXinerama then "xinerama=1" else "xinerama=0"); installFlags = "DESTDIR=$(out) PREFIX=";