tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
inetutils: fix build w/musl
Will Dietz
8 years ago
b47f502d
38d17e33
+8
-2
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
inetutils
default.nix
+8
-2
pkgs/tools/networking/inetutils/default.nix
···
15
15
16
16
buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ];
17
17
18
18
-
configureFlags = "--with-ncurses-include-dir=${ncurses.dev}/include";
18
18
+
configureFlags = [ "--with-ncurses-include-dir=${ncurses.dev}/include" ]
19
19
+
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [ # Musl doesn't define rcmd
20
20
+
"--disable-rcp"
21
21
+
"--disable-rsh"
22
22
+
"--disable-rlogin"
23
23
+
"--disable-rexec"
24
24
+
];
19
25
20
26
# Test fails with "UNIX socket name too long", probably because our
21
27
# $TMPDIR is too long.
···
25
31
postInstall = ''
26
32
# XXX: These programs are normally installed setuid but since it
27
33
# fails, they end up being non-executable, hence this hack.
28
28
-
chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh,traceroute}
34
34
+
chmod +x $out/bin/{ping,ping6,${stdenv.lib.optionalString (!stdenv.hostPlatform.isMusl) ''rcp,rlogin,rsh,''}traceroute}
29
35
'';
30
36
31
37
meta = {