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>
This commit is contained in:
toonn 2021-07-07 19:32:45 +02:00 committed by Jonathan Ringer
parent 530b000f09
commit ea50c9776c

View File

@ -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 \