1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
9 url = "http://mlmmj.org/releases/${pname}-${version}.tar.gz";
10 sha256 = "1sghqvwizvm1a9w56r34qy5njaq1c26bagj85r60h32gh3fx02bn";
13 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
14 # AC_FUNC_MALLOC is broken on cross builds.
15 "ac_cv_func_malloc_0_nonnull=yes"
16 "ac_cv_func_realloc_0_nonnull=yes"
19 # Workaround build failure on -fno-common toolchains like upstream
20 # gcc-10. Otherwise build fails as:
21 # ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of
22 # `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here
23 env.NIX_CFLAGS_COMPILE = "-fcommon";
26 # grab all documentation files
27 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")
28 install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles
32 homepage = "http://mlmmj.org";
33 description = "Mailing List Management Made Joyful";
34 maintainers = [ maintainers.edwtjo ];
35 platforms = platforms.linux;
36 license = licenses.mit;