shelldap: fix on darwin using shortenPerlShebang

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