Merge pull request #166263 from pborzenkov/shorten-pls-shebang

perlPackages.PLS: shorten shebang on Darwin
This commit is contained in:
Stig 2022-03-29 17:45:24 +02:00 committed by GitHub
commit 99a1094086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18200,6 +18200,10 @@ let
sha256 = "0278anidj7bgassj32g20cbki2kkqakkr3axyq4k90nj4snw7p6x";
};
propagatedBuildInputs = [ Future IOAsync PPI PPR PathTiny PerlCritic PerlTidy PodMarkdown URI ];
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/pls
'';
meta = {
homepage = "https://github.com/FractalBoy/perl-language-server";
description = "Perl Language Server";