1{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib }:
2
3stdenv.mkDerivation rec {
4 pname = "liberasurecode";
5 version = "1.6.2";
6
7 outputs = [ "out" "dev" ];
8
9 src = fetchFromGitHub {
10 owner = "openstack";
11 repo = pname;
12 rev = version;
13 sha256 = "sha256-qV7DL/7zrwrYOaPj6iHnChGA6KHFwYKjeaMnrGrTPrQ=";
14 };
15
16 nativeBuildInputs = [ autoreconfHook ];
17
18 buildInputs = [ zlib ];
19
20 meta = with lib; {
21 description = "Erasure Code API library written in C with pluggable Erasure Code backends";
22 homepage = "https://github.com/openstack/liberasurecode";
23 license = licenses.bsd2;
24 maintainers = teams.openstack.members;
25 };
26}