base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libzra / package.nix
blob163389fb11ac4c0f3d2cbf348794c21476d25e0e
1 { lib, stdenv
2 , fetchFromGitHub
3 , cmake
4 }:
6 stdenv.mkDerivation rec {
7   pname = "libzra";
8   version = "unstable-2020-09-11";
10   src = fetchFromGitHub {
11     owner = "zraorg";
12     repo = "zra";
13     rev = "57abf2774dfc4624f14a0bc5bba71f044ce54a38";
14     sha256 = "10rlqj6ma02005gdcp57wp48d6cg0vkbv4vl9ai0zlgxyx1g6kc4";
15     fetchSubmodules = true;
16   };
18   nativeBuildInputs = [ cmake ];
20   # in submodule dev as of 1.4.7
21   postPatch = ''
22     (cd submodule/zstd && patch -Np1 < ${./fix-pkg-config.patch})
23   '';
25   meta = with lib; {
26     homepage = "https://github.com/zraorg/ZRA";
27     description = "Library for ZStandard random access";
28     platforms = platforms.all;
29     maintainers = [ ];
30     license = licenses.bsd3;
31   };