Commit 3c17721b authored by Petr Zahradnik's avatar Petr Zahradnik
Browse files

nmh: 1.7.1 -> 1.8

parent 2c8df39b
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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/";