perlPackages.Appcpanminus: shorten shebangs

TomaSajt 4f76eccc b580ef27

+4
+4
pkgs/top-level/perl-packages.nix
··· 1188 1188 --replace-fail http://cpanmetadb.plackperl.org https://cpanmetadb.plackperl.org 1189 1189 ''; 1190 1190 propagatedBuildInputs = [ IOSocketSSL ]; 1191 + nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang; 1192 + postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 1193 + shortenPerlShebang $out/bin/cpanm 1194 + ''; 1191 1195 meta = { 1192 1196 description = "Get, unpack, build and install modules from CPAN"; 1193 1197 homepage = "https://github.com/miyagawa/cpanminus";