571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitea,
|
|
autoreconfHook,
|
|
atf,
|
|
pkg-config,
|
|
kyua,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "mlmmj";
|
|
version = "1.4.7";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/RELEASE_" + lib.replaceStrings ["."] ["_"] version;
|
|
hash = "sha256-QetxCxny9elPetKuAsgKF0xTov1bNIRxi7gWhv6dYyU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|