nmh: 1.7.1 -> 1.8
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user