summary refs log tree commit diff
path: root/pkgs/misc/cups
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-07-07 19:32:45 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-11-24 15:17:13 -0800
commitea50c9776c004d4f5ec39f547c93a5957fee3faa (patch)
tree026b74bfbc06d544da89eb8f4148a3876c8f1aaf /pkgs/misc/cups
parent530b000f0983b91d2f450e8d7c6d41ca649ca7b7 (diff)
downloadnixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.tar
nixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.tar.gz
nixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.tar.bz2
nixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.tar.lz
nixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.tar.xz
nixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.tar.zst
nixpkgs-ea50c9776c004d4f5ec39f547c93a5957fee3faa.zip
cups: Change condition so patch won't remain forever
By changing the condition for the patch it'll hopefully break when the
version is updated for Darwin and not stick around forever.

Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/misc/cups')
-rw-r--r--pkgs/misc/cups/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix
index bbada33054d..38026adc52c 100644
--- a/pkgs/misc/cups/default.nix
+++ b/pkgs/misc/cups/default.nix
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "lib" "dev" "man" ];
 
-  patches = lib.optional (version == "2.2.6") ./0001-TargetConditionals.patch;
+  patches = lib.optional stdenv.isDarwin ./0001-TargetConditionals.patch;
 
   postPatch = ''
     substituteInPlace cups/testfile.c \