2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2014-07-08 22:43:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mlmmj";
|
2018-02-27 14:09:52 +00:00
|
|
|
version = "1.3.0";
|
2014-07-08 22:43:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://mlmmj.org/releases/${pname}-${version}.tar.gz";
|
2018-02-27 14:09:52 +00:00
|
|
|
sha256 = "1sghqvwizvm1a9w56r34qy5njaq1c26bagj85r60h32gh3fx02bn";
|
2014-07-08 22:43:26 +00:00
|
|
|
};
|
|
|
|
|
2022-06-18 08:09:00 +00:00
|
|
|
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
|
|
|
# AC_FUNC_MALLOC is broken on cross builds.
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
|
|
|
|
2022-05-22 13:23:04 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of
|
|
|
|
# `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-05-22 13:23:04 +00:00
|
|
|
|
2017-03-15 16:35:50 +00:00
|
|
|
postInstall = ''
|
|
|
|
# grab all documentation files
|
|
|
|
docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")
|
|
|
|
install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://mlmmj.org";
|
2014-07-08 22:43:26 +00:00
|
|
|
description = "Mailing List Management Made Joyful";
|
|
|
|
maintainers = [ maintainers.edwtjo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
2017-03-15 16:35:50 +00:00
|
|
|
}
|