treewide: NIX_*_COMPILE -> string

This commit is contained in:
Robin Gloster
2019-12-31 00:07:21 +01:00
committed by Jan Tojnar
parent e5ded57aab
commit 981ae25113
11 changed files with 17 additions and 19 deletions
@@ -19,12 +19,12 @@ stdenv.mkDerivation rec {
(if x11Support then "--enable-x11" else "--disable-x11")
];
NIX_CFLAGS_COMPILE = stdenv.lib.optional (!x11Support) "-DX_DISPLAY_MISSING";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING";
enableParallelBuilding = true;
propagatedBuildInputs = [ ncurses zlib pkgconfig (imlib2.override { inherit x11Support; }) ]
++ stdenv.lib.optionals x11Support [ libX11 libXext];
++ stdenv.lib.optionals x11Support [ libX11 libXext ];
postInstall = ''
mkdir -p $dev/bin