12 stdenv.mkDerivation (finalAttrs: {
13 pname = "liberasurecode";
22 src = fetchFromGitHub {
24 repo = "liberasurecode";
25 tag = finalAttrs.version;
26 hash = "sha256-242p6lyLM+0UpuYvQqz87Z1S0oayxGXz7CZJW7fbgBk=";
30 substituteInPlace doc/doxygen.cfg.in \
31 --replace-fail "GENERATE_MAN = NO" "GENERATE_MAN = YES"
33 substituteInPlace Makefile.am src/Makefile.am \
34 --replace-fail "-Werror" ""
43 buildInputs = [ zlib ];
51 # remove useless man pages about directories
53 installManPage doc/man/man*/*
55 moveToOutput share/liberasurecode/ $doc
60 passthru.tests.pkg-config = testers.hasPkgConfigModules {
61 package = finalAttrs.finalPackage;
65 description = "Erasure Code API library written in C with pluggable Erasure Code backends";
66 homepage = "https://github.com/openstack/liberasurecode";
67 license = licenses.bsd2;
68 maintainers = teams.openstack.members;
69 pkgConfigModules = [ "erasurecode-1" ];