cups: Only apply patch for appropriate version

This commit is contained in:
toonn
2021-11-24 15:17:13 -08:00
committed by Jonathan Ringer
parent 8edba0e217
commit 24dd96ebd4
+1 -1
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 \