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 `//`
This commit is contained in:
parent
a21deff818
commit
24ecea845f
@ -87,6 +87,9 @@ stdenv.mkDerivation (
|
||||
./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;
|
||||
|
||||
@ -324,11 +327,8 @@ stdenv.mkDerivation (
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user