tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nmh: refactor
Jasi
6 months ago
44b853f7
ec87d00e
+13
-11
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
nm
nmh
package.nix
+13
-11
pkgs/by-name/nm/nmh/package.nix
···
3
3
stdenv,
4
4
autoreconfHook,
5
5
bison,
6
6
-
coreutils,
7
6
cyrus_sasl,
8
7
db,
9
8
fetchurl,
···
28
27
29
28
patches = [ ./reproducible-build-date.patch ];
30
29
31
31
-
postPatch = ''
32
32
-
substituteInPlace \
33
33
-
sbr/arglist.c \
34
34
-
uip/mhbuildsbr.c \
35
35
-
uip/whatnowsbr.c \
36
36
-
uip/slocal.c \
37
37
-
--replace-fail '"/bin/sh"' '"${runtimeShell}"'
30
30
+
postPatch =
31
31
+
# patch hardcoded shell
32
32
+
''
33
33
+
substituteInPlace \
34
34
+
sbr/arglist.c \
35
35
+
uip/mhbuildsbr.c \
36
36
+
uip/whatnowsbr.c \
37
37
+
uip/slocal.c \
38
38
+
--replace-fail '"/bin/sh"' '"${runtimeShell}"'
39
39
+
''
38
40
# the "cleanup" pseudo-test makes diagnosing test failures a pain
39
39
-
ln -s -f ${stdenv}/bin/true test/cleanup
40
40
-
'';
41
41
+
+ ''
42
42
+
ln -sf ${stdenv}/bin/true test/cleanup
43
43
+
'';
41
44
42
45
nativeBuildInputs = [
43
46
autoreconfHook
···
55
58
readline
56
59
];
57
60
58
58
-
NIX_CFLAGS_COMPILE = "-Wno-stringop-truncation";
59
61
doCheck = true;
60
62
enableParallelBuilding = true;
61
63