depot/third_party/nixpkgs/pkgs/by-name/ml/mlmmj/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

48 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 = pname;
repo = pname;
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;
};
}