mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
Merge pull request #305317 from tyxieblub/shelldap-darwin
shelldap: fix on darwin using shortenPerlShebang
This commit is contained in:
commit
df51f2293e
@ -1,6 +1,8 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, perlPackages
|
||||
, shortenPerlShebang
|
||||
}:
|
||||
|
||||
perlPackages.buildPerlPackage rec {
|
||||
@ -26,6 +28,8 @@ perlPackages.buildPerlPackage rec {
|
||||
YAMLSyck
|
||||
];
|
||||
|
||||
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||
|
||||
prePatch = ''
|
||||
touch Makefile.PL
|
||||
'';
|
||||
@ -33,7 +37,11 @@ perlPackages.buildPerlPackage rec {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm555 -t $out/bin shelldap
|
||||
runHook preInstall
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||
shortenPerlShebang $out/bin/shelldap
|
||||
'';
|
||||
|
||||
# no make target 'test', not tests provided by source
|
||||
|
Loading…
Reference in New Issue
Block a user