tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
shelldap: fix on darwin using shortenPerlShebang
tyxieblub
2 years ago
d6479240
9c1f3b30
+9
-1
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
shelldap
default.nix
+9
-1
pkgs/tools/misc/shelldap/default.nix
···
1
{ lib
0
2
, fetchFromGitHub
3
, perlPackages
0
4
}:
5
6
perlPackages.buildPerlPackage rec {
···
26
YAMLSyck
27
];
28
0
0
29
prePatch = ''
30
touch Makefile.PL
31
'';
···
33
installPhase = ''
34
runHook preInstall
35
install -Dm555 -t $out/bin shelldap
36
-
runHook preInstall
0
0
0
0
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