perl: Fix applying all the patches on cross

Applying the patches was broken in a2e1f82167a613134a7e24d461595f3a8b90d402
because a `patches` attr was added after `//` which overrode the `patches` before the `//`

Artturin 24ecea84 a21deff8

Changed files
+5 -5
pkgs
development
interpreters
+5 -5
pkgs/development/interpreters/perl/interpreter.nix
···
./cpp-precomp.patch
./sw_vers.patch
]
+
# fixes build failure due to missing d_fdopendir/HAS_FDOPENDIR configure option
+
# https://github.com/arsv/perl-cross/pull/159
+
++ lib.optional (crossCompiling && (lib.versionAtLeast version "5.40.0")) ./cross-fdopendir.patch
++ lib.optional (crossCompiling && (lib.versionAtLeast version "5.40.0")) ./cross540.patch
++ lib.optional (crossCompiling && (lib.versionOlder version "5.40.0")) ./cross.patch;
···
rev = crossVersion;
hash = "sha256-mG9ny+eXGBL4K/rXqEUPSbar+4Mq4IaQrGRFIHIyAAw=";
};
-
patches = [
-
# fixes build failure due to missing d_fdopendir/HAS_FDOPENDIR configure option
-
# https://github.com/arsv/perl-cross/pull/159
-
./cross-fdopendir.patch
-
];
+
+
# Patches are above!!!
depsBuildBuild = [
buildPackages.stdenv.cc