diff --git a/pkgs/by-name/ju/junkie/package.nix b/pkgs/by-name/ju/junkie/package.nix index 40a80f4dad30..cd4e0af4de58 100644 --- a/pkgs/by-name/ju/junkie/package.nix +++ b/pkgs/by-name/ju/junkie/package.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { ]; # IP_DONTFRAG is defined on macOS from Big Sur - postPatch = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") '' + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' sed -i '10i#undef IP_DONTFRAG' include/junkie/proto/ip.h '';