xnotify: remove with statements

This commit is contained in:
Philip Taron 2024-08-16 14:15:31 -07:00
parent abcb8ef242
commit 60f995275a
No known key found for this signature in database

View File

@ -29,13 +29,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 = [ "PREFIX=$(out)" ];