at 23.11-beta 32 lines 739 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3, cmake 4}: 5 6stdenv.mkDerivation rec { 7 pname = "libzra"; 8 version = "unstable-2020-09-11"; 9 10 src = fetchFromGitHub { 11 owner = "zraorg"; 12 repo = "zra"; 13 rev = "57abf2774dfc4624f14a0bc5bba71f044ce54a38"; 14 sha256 = "10rlqj6ma02005gdcp57wp48d6cg0vkbv4vl9ai0zlgxyx1g6kc4"; 15 fetchSubmodules = true; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 20 # in submodule dev as of 1.4.7 21 postPatch = '' 22 (cd submodule/zstd && patch -Np1 < ${./fix-pkg-config.patch}) 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/zraorg/ZRA"; 27 description = "Library for ZStandard random access"; 28 platforms = platforms.all; 29 maintainers = [ maintainers.ivar ]; 30 license = licenses.bsd3; 31 }; 32}