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
1
{ lib
2
2
+
, stdenv
2
3
, fetchFromGitHub
3
4
, perlPackages
5
5
+
, shortenPerlShebang
4
6
}:
5
7
6
8
perlPackages.buildPerlPackage rec {
···
26
28
YAMLSyck
27
29
];
28
30
31
31
+
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
32
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
36
-
runHook preInstall
40
40
+
runHook postInstall
41
41
+
'';
42
42
+
43
43
+
postInstall = lib.optionalString stdenv.isDarwin ''
44
44
+
shortenPerlShebang $out/bin/shelldap
37
45
'';
38
46
39
47
# no make target 'test', not tests provided by source