Skip to content

Commit de6d4da

Browse files
authored
perlPackages.Socket6: fix cross build (NixOS#374086)
2 parents 8d16067 + f5816b0 commit de6d4da

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
@@ -22795,8 +22795,12 @@ with self; {
2279522795
hash = "sha256-RokV+joE3PZXT8lX7/SVkV4kVpQ0lwyR7o5OFFn8kRQ=";
2279622796
};
2279722797
setOutputFlags = false;
22798-
buildInputs = [ pkgs.which ];
22798+
nativeBuildInputs = [ pkgs.which ];
2279922799
patches = [ ../development/perl-modules/Socket6-sv_undef.patch ];
22800+
preConfigure = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
22801+
substituteInPlace configure \
22802+
--replace-fail 'cross_compiling=no' 'cross_compiling=yes;ipv6_cv_can_inet_ntop=yes'
22803+
'';
2280022804
meta = {
2280122805
description = "IPv6 related part of the C socket.h defines and structure manipulators";
2280222806
license = with lib.licenses; [ bsd3 ];

0 commit comments

Comments
 (0)