perlPackages.LWP: fix cross-compilation
This commit is contained in:
parent
d429573ddb
commit
36834a0495
|
@ -8854,6 +8854,10 @@ let
|
||||||
sha256 = "dda2578d7b32152c4afce834761a61d117de286c705a9f7972c7ac6032ca5953";
|
sha256 = "dda2578d7b32152c4afce834761a61d117de286c705a9f7972c7ac6032ca5953";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPDaemon HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
|
propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPDaemon HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
|
||||||
|
# support cross-compilation by avoiding using `has_module` which does not work in miniperl (it requires B native module)
|
||||||
|
postPatch = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||||
|
substituteInPlace Makefile.PL --replace 'if has_module' 'if 0; #'
|
||||||
|
'';
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The World-Wide Web library for Perl";
|
description = "The World-Wide Web library for Perl";
|
||||||
license = with licenses; [ artistic1 gpl1Plus ];
|
license = with licenses; [ artistic1 gpl1Plus ];
|
||||||
|
|
Loading…
Reference in New Issue