nmh: refactor

Jasi 44b853f7 ec87d00e

+13 -11
+13 -11
pkgs/by-name/nm/nmh/package.nix
··· 3 3 stdenv, 4 4 autoreconfHook, 5 5 bison, 6 - coreutils, 7 6 cyrus_sasl, 8 7 db, 9 8 fetchurl, ··· 28 27 29 28 patches = [ ./reproducible-build-date.patch ]; 30 29 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}"' 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 + '' 38 40 # the "cleanup" pseudo-test makes diagnosing test failures a pain 39 - ln -s -f ${stdenv}/bin/true test/cleanup 40 - ''; 41 + + '' 42 + ln -sf ${stdenv}/bin/true test/cleanup 43 + ''; 41 44 42 45 nativeBuildInputs = [ 43 46 autoreconfHook ··· 55 58 readline 56 59 ]; 57 60 58 - NIX_CFLAGS_COMPILE = "-Wno-stringop-truncation"; 59 61 doCheck = true; 60 62 enableParallelBuilding = true; 61 63