summary refs log tree commit diff
path: root/pkgs/development/perl-modules
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2018-07-10 20:43:22 -0700
committerRyan Mulligan <ryan@ryantm.com>2018-07-14 18:49:00 -0700
commit220618ef9ce670ddcc98822e9bd4e80d95baf6a3 (patch)
treed06332d8e74d5118ca38a7a606f819c3c57dace0 /pkgs/development/perl-modules
parent394ef8245153fceedf21928f6175ff8bc691b71b (diff)
downloadnixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.tar
nixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.tar.gz
nixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.tar.bz2
nixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.tar.lz
nixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.tar.xz
nixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.tar.zst
nixpkgs-220618ef9ce670ddcc98822e9bd4e80d95baf6a3.zip
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
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r--pkgs/development/perl-modules/DBD-Pg/default.nix1
-rw-r--r--pkgs/development/perl-modules/generic/default.nix6
2 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/perl-modules/DBD-Pg/default.nix b/pkgs/development/perl-modules/DBD-Pg/default.nix
index f69ce015ed1..f6b31aafaf6 100644
--- a/pkgs/development/perl-modules/DBD-Pg/default.nix
+++ b/pkgs/development/perl-modules/DBD-Pg/default.nix
@@ -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;
diff --git a/pkgs/development/perl-modules/generic/default.nix b/pkgs/development/perl-modules/generic/default.nix
index b33861d83ee..561bbcdb73e 100644
--- a/pkgs/development/perl-modules/generic/default.nix
+++ b/pkgs/development/perl-modules/generic/default.nix
@@ -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;