xprompt: remove with statements

This commit is contained in:
Philip Taron
2024-08-18 06:32:22 -07:00
parent 60f995275a
commit fada673a22
+3 -3
View File
@@ -28,13 +28,13 @@ stdenv.mkDerivation rec {
libXinerama
];
postPatch = with lib;
postPatch =
let
configFile =
if isDerivation conf || builtins.isPath conf
if lib.isDerivation conf || builtins.isPath conf
then conf else writeText "config.h" conf;
in
optionalString (conf != null) "cp ${configFile} config.h";
lib.optionalString (conf != null) "cp ${configFile} config.h";
makeFlags = [ "CC:=$(CC)" "PREFIX=$(out)" ];