cups: Only apply patch for appropriate version

authored by

toonn and committed by
Jonathan Ringer
24dd96eb 8edba0e2

+1 -1
+1 -1
pkgs/misc/cups/default.nix
··· 40 41 outputs = [ "out" "lib" "dev" "man" ]; 42 43 - patches = [ ./0001-TargetConditionals.patch ]; 44 45 postPatch = '' 46 substituteInPlace cups/testfile.c \
··· 40 41 outputs = [ "out" "lib" "dev" "man" ]; 42 43 + patches = lib.optional (version == "2.2.6") ./0001-TargetConditionals.patch; 44 45 postPatch = '' 46 substituteInPlace cups/testfile.c \