Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ 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" ]; };})