Skip to content

Commit f5816b0

Browse files
perlPackages.Socket6: fix cross build
1 parent d9e9853 commit f5816b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkgs/top-level/perl-packages.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22766,8 +22766,12 @@ with self; {
2276622766
hash = "sha256-RokV+joE3PZXT8lX7/SVkV4kVpQ0lwyR7o5OFFn8kRQ=";
2276722767
};
2276822768
setOutputFlags = false;
22769-
buildInputs = [ pkgs.which ];
22769+
nativeBuildInputs = [ pkgs.which ];
2277022770
patches = [ ../development/perl-modules/Socket6-sv_undef.patch ];
22771+
preConfigure = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
22772+
substituteInPlace configure \
22773+
--replace-fail 'cross_compiling=no' 'cross_compiling=yes;ipv6_cv_can_inet_ntop=yes'
22774+
'';
2277122775
meta = {
2277222776
description = "IPv6 related part of the C socket.h defines and structure manipulators";
2277322777
license = with lib.licenses; [ bsd3 ];

0 commit comments

Comments
 (0)