Fernando Rodrigues 05580f4b44
treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00

72 lines
1.4 KiB
Nix

{
lib,
stdenv,
autoreconfHook,
doxygen,
fetchFromGitHub,
installShellFiles,
testers,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "liberasurecode";
version = "1.6.5";
outputs = [
"out"
"dev"
"doc"
];
src = fetchFromGitHub {
owner = "openstack";
repo = "liberasurecode";
tag = finalAttrs.version;
hash = "sha256-242p6lyLM+0UpuYvQqz87Z1S0oayxGXz7CZJW7fbgBk=";
};
postPatch = ''
substituteInPlace doc/doxygen.cfg.in \
--replace-fail "GENERATE_MAN = NO" "GENERATE_MAN = YES"
substituteInPlace Makefile.am src/Makefile.am \
--replace-fail "-Werror" ""
'';
nativeBuildInputs = [
autoreconfHook
doxygen
installShellFiles
];
buildInputs = [ zlib ];
configureFlags = [
"--disable-werror"
"--enable-doxygen"
];
postInstall = ''
# remove useless man pages about directories
rm doc/man/man*/_*
installManPage doc/man/man*/*
moveToOutput share/liberasurecode/ $doc
'';
checkTarget = "test";
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
meta = with lib; {
description = "Erasure Code API library written in C with pluggable Erasure Code backends";
homepage = "https://github.com/openstack/liberasurecode";
license = licenses.bsd2;
teams = [ teams.openstack ];
pkgConfigModules = [ "erasurecode-1" ];
};
})