perlPackages.Appcpanminus: shorten shebangs

This commit is contained in:
TomaSajt
2025-08-14 01:26:38 +02:00
parent b580ef2739
commit 4f76eccc52
+4
View File
@@ -1188,6 +1188,10 @@ with self;
--replace-fail http://cpanmetadb.plackperl.org https://cpanmetadb.plackperl.org
'';
propagatedBuildInputs = [ IOSocketSSL ];
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
shortenPerlShebang $out/bin/cpanm
'';
meta = {
description = "Get, unpack, build and install modules from CPAN";
homepage = "https://github.com/miyagawa/cpanminus";