From fada673a227ccfd040396683636a4e9de3f2372a Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 16 Aug 2024 14:15:34 -0700 Subject: [PATCH] xprompt: remove with statements --- pkgs/tools/X11/xprompt/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/X11/xprompt/default.nix b/pkgs/tools/X11/xprompt/default.nix index 818f5cda362d..e62afb988d75 100644 --- a/pkgs/tools/X11/xprompt/default.nix +++ b/pkgs/tools/X11/xprompt/default.nix @@ -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)" ];