Files
nixpkgs/pkgs/by-name/ml/mlmmj/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitea,
autoreconfHook,
atf,
pkg-config,
kyua,
}:
stdenv.mkDerivation rec {
pname = "mlmmj";
version = "1.5.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "mlmmj";
repo = "mlmmj";
rev = "refs/tags/RELEASE_" + lib.replaceStrings [ "." ] [ "_" ] version;
hash = "sha256-kAo04onxVve3kCaM4h1APsjs3C4iePabkBFJeqvnPxo=";
};
nativeBuildInputs = [
autoreconfHook
atf
pkg-config
kyua
];
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"
];
postInstall = ''
# grab all documentation files
docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")
install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles
'';
meta = with lib; {
homepage = "http://mlmmj.org";
description = "Mailing List Management Made Joyful";
maintainers = [ maintainers.edwtjo ];
platforms = platforms.linux;
license = licenses.mit;
};
}