nmh: 1.7.1 -> 1.8

This commit is contained in:
Petr Zahradnik
2025-03-23 16:02:31 +01:00
parent 2c8df39b2a
commit 3c17721be9
+11 -4
View File
@@ -14,25 +14,25 @@
openssl,
readline,
runtimeShell,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nmh";
version = "1.7.1";
version = "1.8";
src = fetchFromSavannah {
repo = "nmh";
rev = finalAttrs.version;
hash = "sha256-sBftXl4hWs4bKw5weHkif1KIJBpheU/RCePx0WXuv9o=";
hash = "sha256-ShAdinvBA7guVBhjqTelBRiUzyo5KqHcawlQS9kXtqs=";
};
postPatch = ''
substituteInPlace config/config.c --replace /bin/cat ${coreutils}/bin/cat
substituteInPlace \
sbr/arglist.c \
uip/mhbuildsbr.c \
uip/whatnowsbr.c \
uip/slocal.c \
--replace '"/bin/sh"' '"${runtimeShell}"'
--replace-fail '"/bin/sh"' '"${runtimeShell}"'
# the "cleanup" pseudo-test makes diagnosing test failures a pain
ln -s -f ${stdenv}/bin/true test/cleanup
'';
@@ -57,6 +57,13 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
enableParallelBuilding = true;
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/install-mh";
versionCheckProgramArg = "-version";
meta = {
description = "New MH Mail Handling System";
homepage = "https://nmh.nongnu.org/";