shelldap: fix on darwin using shortenPerlShebang

+9 -1
+9 -1
pkgs/tools/misc/shelldap/default.nix
··· 1 { lib 2 , fetchFromGitHub 3 , perlPackages 4 }: 5 6 perlPackages.buildPerlPackage rec { ··· 26 YAMLSyck 27 ]; 28 29 prePatch = '' 30 touch Makefile.PL 31 ''; ··· 33 installPhase = '' 34 runHook preInstall 35 install -Dm555 -t $out/bin shelldap 36 - runHook preInstall 37 ''; 38 39 # no make target 'test', not tests provided by source
··· 1 { lib 2 + , stdenv 3 , fetchFromGitHub 4 , perlPackages 5 + , shortenPerlShebang 6 }: 7 8 perlPackages.buildPerlPackage rec { ··· 28 YAMLSyck 29 ]; 30 31 + nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang; 32 + 33 prePatch = '' 34 touch Makefile.PL 35 ''; ··· 37 installPhase = '' 38 runHook preInstall 39 install -Dm555 -t $out/bin shelldap 40 + runHook postInstall 41 + ''; 42 + 43 + postInstall = lib.optionalString stdenv.isDarwin '' 44 + shortenPerlShebang $out/bin/shelldap 45 ''; 46 47 # no make target 'test', not tests provided by source