10 stdenv.mkDerivation rec {
14 src = fetchFromGitea {
15 domain = "codeberg.org";
18 rev = "refs/tags/RELEASE_" + lib.replaceStrings ["."] ["_"] version;
19 hash = "sha256-QetxCxny9elPetKuAsgKF0xTov1bNIRxi7gWhv6dYyU=";
22 nativeBuildInputs = [autoreconfHook atf pkg-config kyua];
24 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
25 # AC_FUNC_MALLOC is broken on cross builds.
26 "ac_cv_func_malloc_0_nonnull=yes"
27 "ac_cv_func_realloc_0_nonnull=yes"
31 # grab all documentation files
32 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")
33 install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles
37 homepage = "http://mlmmj.org";
38 description = "Mailing List Management Made Joyful";
39 maintainers = [maintainers.edwtjo];
40 platforms = platforms.linux;
41 license = licenses.mit;