cups: Only apply patch for appropriate version

This commit is contained in:
toonn
2021-10-25 20:30:23 +02:00
committed by Jonathan Ringer
parent 8edba0e217
commit 24dd96ebd4

View File

@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "lib" "dev" "man" ];
patches = [ ./0001-TargetConditionals.patch ];
patches = lib.optional (version == "2.2.6") ./0001-TargetConditionals.patch;
postPatch = ''
substituteInPlace cups/testfile.c \