Merge pull request #135079 from zakame/contrib/perl-PerlCritic-shortenPerlShebang

perlPackages.PerlCritic: shortenPerlShebang on Darwin
This commit is contained in:
Sandro 2021-08-21 17:38:56 +02:00 committed by GitHub
commit d0182a4046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16905,12 +16905,16 @@ let
sha256 = "2ad194f91ef24df4698369c2562d4164e9bf74f2d5565c681841abf79789ed82";
};
buildInputs = [ TestDeep ];
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
propagatedBuildInputs = [ BKeywords ConfigTiny FileWhich ListMoreUtils ModulePluggable PPIxQuoteLike PPIxRegexp PPIxUtilities PerlTidy PodSpell StringFormat ];
meta = {
homepage = "http://perlcritic.com";
description = "Critique Perl source code for best-practices";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/perlcritic
'';
};
PerlCriticCommunity = buildPerlModule {