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
stdenv,
4
autoreconfHook,
5
bison,
6
-
coreutils,
7
cyrus_sasl,
8
db,
9
fetchurl,
···
28
29
patches = [ ./reproducible-build-date.patch ];
30
31
-
postPatch = ''
32
-
substituteInPlace \
33
-
sbr/arglist.c \
34
-
uip/mhbuildsbr.c \
35
-
uip/whatnowsbr.c \
36
-
uip/slocal.c \
37
-
--replace-fail '"/bin/sh"' '"${runtimeShell}"'
0
0
0
38
# the "cleanup" pseudo-test makes diagnosing test failures a pain
39
-
ln -s -f ${stdenv}/bin/true test/cleanup
40
-
'';
0
41
42
nativeBuildInputs = [
43
autoreconfHook
···
55
readline
56
];
57
58
-
NIX_CFLAGS_COMPILE = "-Wno-stringop-truncation";
59
doCheck = true;
60
enableParallelBuilding = true;
61
···
3
stdenv,
4
autoreconfHook,
5
bison,
0
6
cyrus_sasl,
7
db,
8
fetchurl,
···
27
28
patches = [ ./reproducible-build-date.patch ];
29
30
+
postPatch =
31
+
# patch hardcoded shell
32
+
''
33
+
substituteInPlace \
34
+
sbr/arglist.c \
35
+
uip/mhbuildsbr.c \
36
+
uip/whatnowsbr.c \
37
+
uip/slocal.c \
38
+
--replace-fail '"/bin/sh"' '"${runtimeShell}"'
39
+
''
40
# the "cleanup" pseudo-test makes diagnosing test failures a pain
41
+
+ ''
42
+
ln -sf ${stdenv}/bin/true test/cleanup
43
+
'';
44
45
nativeBuildInputs = [
46
autoreconfHook
···
58
readline
59
];
60
0
61
doCheck = true;
62
enableParallelBuilding = true;
63