biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / liberasurecode / default.nix
blobf94496d0b125e3e64a513b77c71e707ff52df9eb
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , doxygen
6 , installShellFiles
7 , zlib
8 }:
10 stdenv.mkDerivation rec {
11   pname = "liberasurecode";
12   version = "1.6.3";
14   outputs = [ "out" "dev" "doc" ];
16   src = fetchFromGitHub {
17     owner = "openstack";
18     repo = pname;
19     rev = version;
20     sha256 = "sha256-HCp+FQ9nq4twk6FtfKhzT80wXXJbvG+clrDO2/9ATpU=";
21   };
23   postPatch = ''
24     substituteInPlace doc/doxygen.cfg.in \
25       --replace "GENERATE_MAN           = NO" "GENERATE_MAN           = YES"
27     substituteInPlace Makefile.am src/Makefile.am \
28       --replace "-Werror" ""
29   '';
31   nativeBuildInputs = [ autoreconfHook doxygen installShellFiles ];
33   buildInputs = [ zlib ];
35   configureFlags = [
36     "--disable-werror"
37     "--enable-doxygen"
38   ];
40   postInstall = ''
41     # remove useless man pages about directories
42     rm doc/man/man*/_*
43     installManPage doc/man/man*/*
45     moveToOutput share/liberasurecode/ $doc
46   '';
48   checkTarget = "test";
50   meta = with lib; {
51     description = "Erasure Code API library written in C with pluggable Erasure Code backends";
52     homepage = "https://github.com/openstack/liberasurecode";
53     license = licenses.bsd2;
54     maintainers = teams.openstack.members;
55   };