mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 12:34:00 +00:00
perlPackages.LWP: 6.49 -> 6.67
Moves test dependencies to `checkInputs` to avoid pulling in HTTP::Daemon, which is now a test requirement, if we're cross compiling as HTTP::Daemon doesn't build with perl-cross miniperl.
This commit is contained in:
parent
ad29dc19c1
commit
a98d434e5e
@ -13030,12 +13030,12 @@ let
|
|||||||
|
|
||||||
LWP = buildPerlPackage {
|
LWP = buildPerlPackage {
|
||||||
pname = "libwww-perl";
|
pname = "libwww-perl";
|
||||||
version = "6.49";
|
version = "6.67";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.49.tar.gz";
|
url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.67.tar.gz";
|
||||||
sha256 = "19k0cg4j4qz005a4ngy48z4r8dc99dxlpq8kvj7qnk15mvgd1r63";
|
sha256 = "sha256-lu7ECj/QqhvYNBF75eshxDj3MJTYYaGn5XdPCxImtyM=";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPDaemon HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
|
propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
|
||||||
# support cross-compilation by avoiding using `has_module` which does not work in miniperl (it requires B native module)
|
# support cross-compilation by avoiding using `has_module` which does not work in miniperl (it requires B native module)
|
||||||
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||||
substituteInPlace Makefile.PL --replace 'if has_module' 'if 0; #'
|
substituteInPlace Makefile.PL --replace 'if has_module' 'if 0; #'
|
||||||
@ -13045,7 +13045,7 @@ let
|
|||||||
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 ];
|
||||||
};
|
};
|
||||||
buildInputs = [ TestFatal TestNeeds TestRequiresInternet ];
|
checkInputs = [ HTTPDaemon TestFatal TestNeeds TestRequiresInternet ];
|
||||||
};
|
};
|
||||||
|
|
||||||
LWPAuthenOAuth = buildPerlPackage {
|
LWPAuthenOAuth = buildPerlPackage {
|
||||||
|
Loading…
Reference in New Issue
Block a user