summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs/top-level/perl-packages.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 67a1c6f636a6..fe55ab9f57c3 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -733,6 +733,14 @@ let
url = "mirror://cpan/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7045.tar.gz";
sha256 = "1779w07zxlgfk35s24ksr7k9azd5yl8sbb48y1aaph7y4gf4lkmc";
};
+ # Use TLS endpoints for downloads and metadata by default
+ preConfigure = ''
+ substituteInPlace bin/cpanm \
+ --replace http://www.cpan.org https://www.cpan.org \
+ --replace http://backpan.perl.org https://backpan.perl.org \
+ --replace http://fastapi.metacpan.org https://fastapi.metacpan.org \
+ --replace http://cpanmetadb.plackperl.org https://cpanmetadb.plackperl.org
+ '';
propagatedBuildInputs = [ IOSocketSSL ];
meta = {
homepage = "https://github.com/miyagawa/cpanminus";