perlPackages: remove search.cpan.org; add metacpan.org default homepage

https://www.perl.com/article/saying-goodbye-to-search-cpan-org/

maybe one operation less

..with unifying recursiveUpdate and first //

although not tested

fix whitespace
This commit is contained in:
Ryan Mulligan
2018-07-10 20:43:22 -07:00
parent 394ef82451
commit 220618ef9c
7 changed files with 8 additions and 142 deletions

View File

@@ -17,7 +17,6 @@ buildPerlPackage rec {
doCheck = false;
meta = {
homepage = http://search.cpan.org/dist/DBD-Pg/;
description = "DBI PostgreSQL interface";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
platforms = stdenv.lib.platforms.unix;

View File

@@ -3,6 +3,8 @@ perl:
{ nativeBuildInputs ? [], name, ... } @ attrs:
perl.stdenv.mkDerivation (
(
perl.stdenv.lib.recursiveUpdate
{
outputs = [ "out" "devdoc" ];
@@ -20,9 +22,11 @@ perl.stdenv.mkDerivation (
# authors to skip certain tests (or include certain tests) when
# the results are not being monitored by a human being."
AUTOMATED_TESTING = true;
meta.homepage = "https://metacpan.org/release/${(builtins.parseDrvName name).name}";
}
//
attrs
)
//
{
name = "perl-" + name;