3
0
Fork 0
forked from mirrors/nixpkgs

slstatus: fix overriden build

This commit is contained in:
Louis Bettens 2023-03-01 09:08:05 +01:00
parent 2b554db6c0
commit 581804a146
No known key found for this signature in database

View file

@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
};
configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = lib.optionalString (conf!=null) "cp ${configFile} config.def.h" + ''
preBuild = ''
${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"}
makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC)
'';