Skip to content

Commit d7f6367

Browse files
committedMay 31, 2017
daemontools: fix build
1 parent bef0b67 commit d7f6367

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed
 

‎pkgs/tools/admin/daemontools/default.nix

+12-10
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,42 @@
22

33
stdenv.mkDerivation rec {
44
name = "daemontools-0.76";
5-
5+
66
src = fetchurl {
77
url = "https://cr.yp.to/daemontools/${name}.tar.gz";
88
sha256 = "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5";
99
};
10-
10+
11+
patches = [ ./fix-nix-usernamespace-build.patch ];
12+
1113
configurePhase = ''
1214
cd ${name}
13-
15+
1416
sed -ie '1 s_$_ -include ${glibc.dev}/include/errno.h_' src/conf-cc
15-
17+
1618
substituteInPlace src/Makefile \
1719
--replace '/bin/sh' '${bash}/bin/bash -oxtrace'
18-
20+
1921
sed -ie "s_^PATH=.*_PATH=$src/${name}/compile:''${PATH}_" src/rts.tests
20-
22+
2123
cat ${glibc.dev}/include/errno.h
2224
'';
23-
25+
2426
buildPhase = ''
2527
package/compile
2628
'';
27-
29+
2830
installPhase = ''
2931
for cmd in $(cat package/commands); do
3032
install -Dm755 "command/$cmd" "$out/bin/$cmd"
3133
done
3234
'';
33-
35+
3436
meta = {
3537
license = stdenv.lib.licenses.publicDomain;
3638
homepage = https://cr.yp.to/daemontools.html;
3739
description = "A collection of tools for managing UNIX services.";
38-
40+
3941
maintainers = with stdenv.lib.maintainers; [ kevincox ];
4042
platforms = stdenv.lib.platforms.unix;
4143
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- admin.org/daemontools-0.76/src/chkshsgr.c 2001-07-12 17:49:49.000000000 +0100
2+
+++ admin/daemontools-0.76/src/chkshsgr.c 2017-05-31 23:54:56.662174028 +0100
3+
@@ -4,6 +4,7 @@
4+
5+
int main()
6+
{
7+
+ return 0;
8+
short x[4];
9+
10+
x[0] = x[1] = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.