mmh: unstable-2020-08-21 -> unstable-2023-09-24, unbreak on GCC 14 (#392145)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-19 01:28:02 +02:00
committed by GitHub
+14 -8
View File
@@ -7,21 +7,21 @@
flex,
}:
let
rev = "b17ea39dc17e5514f33b3f5c34ede92bd16e208c";
rev = "7e93dee44df1a7e8f551a2e408a600b2e90a0974";
in
stdenv.mkDerivation {
pname = "mmh";
version = "unstable-2020-08-21";
version = "unstable-2023-09-24";
src = fetchurl {
url = "http://git.marmaro.de/?p=mmh;a=snapshot;h=${rev};sf=tgz";
name = "mmh-${rev}.tgz";
sha256 = "1bqfxafw4l2y46pnsxgy4ji1xlyifzw01k1ykbsjj9p61q3nv6l6";
hash = "sha256-t2Qnwtkli+/MDk6uaikS2SIP9LucK64os8kGcn2ytRU=";
};
postPatch = ''
substituteInPlace sbr/Makefile.in \
--replace "ar " "${stdenv.cc.targetPrefix}ar "
--replace-fail "ar " "${stdenv.cc.targetPrefix}ar "
'';
buildInputs = [ ncurses ];
@@ -30,12 +30,18 @@ stdenv.mkDerivation {
flex
];
meta = with lib; {
# mhl.c:1031:58: error: pointer type mismatch in conditional expression []
# 1031 | putstr((c1->c_flags & RTRIM) ? rtrim(cp) : cp);
NIX_CFLAGS_COMPILE = [ " -Wno-error=incompatible-pointer-types" ];
enableParallelBuilding = true;
meta = {
description = "Set of electronic mail handling programs";
homepage = "http://marmaro.de/prog/mmh";
license = licenses.bsd3;
platforms = platforms.unix;
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
maintainers = with maintainers; [ kaction ];
maintainers = with lib.maintainers; [ kaction ];
};
}