nixpkgs/pkgs/by-name/ml/mlmmj/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

2024-09-24 17:52:54 +00:00
{
lib,
stdenv,
fetchFromGitea,
autoreconfHook,
atf,
pkg-config,
kyua,
}:
2014-07-08 22:43:26 +00:00
stdenv.mkDerivation rec {
pname = "mlmmj";
2024-09-24 17:52:54 +00:00
version = "1.4.7";
src = fetchFromGitea {
domain = "codeberg.org";
owner = pname;
repo = pname;
rev = "refs/tags/RELEASE_" + lib.replaceStrings ["."] ["_"] version;
hash = "sha256-QetxCxny9elPetKuAsgKF0xTov1bNIRxi7gWhv6dYyU=";
2014-07-08 22:43:26 +00:00
};
2024-09-24 17:52:54 +00:00
nativeBuildInputs = [autoreconfHook atf pkg-config kyua];
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"
];
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
'';
meta = with lib; {
homepage = "http://mlmmj.org";
2014-07-08 22:43:26 +00:00
description = "Mailing List Management Made Joyful";
2024-09-24 17:52:54 +00:00
maintainers = [maintainers.edwtjo];
2014-07-08 22:43:26 +00:00
platforms = platforms.linux;
license = licenses.mit;
};
2017-03-15 16:35:50 +00:00
}