10 stdenv.mkDerivation rec {
14 src = fetchFromGitea {
15 domain = "codeberg.org";
18 rev = "refs/tags/RELEASE_" + lib.replaceStrings [ "." ] [ "_" ] version;
19 hash = "sha256-QetxCxny9elPetKuAsgKF0xTov1bNIRxi7gWhv6dYyU=";
29 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
30 # AC_FUNC_MALLOC is broken on cross builds.
31 "ac_cv_func_malloc_0_nonnull=yes"
32 "ac_cv_func_realloc_0_nonnull=yes"
36 # grab all documentation files
37 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")
38 install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles
42 homepage = "http://mlmmj.org";
43 description = "Mailing List Management Made Joyful";
44 maintainers = [ maintainers.edwtjo ];
45 platforms = platforms.linux;
46 license = licenses.mit;