From 581804a146079a6c71514130c4efe414ffcf5e83 Mon Sep 17 00:00:00 2001 From: Louis Bettens Date: Wed, 1 Mar 2023 09:08:05 +0100 Subject: [PATCH] slstatus: fix overriden build --- pkgs/applications/misc/slstatus/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/slstatus/default.nix b/pkgs/applications/misc/slstatus/default.nix index ac8170ed551c..4f022d81f62c 100644 --- a/pkgs/applications/misc/slstatus/default.nix +++ b/pkgs/applications/misc/slstatus/default.nix @@ -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) '';