nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 zstd,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "zarchive";
11 version = "0.1.2";
12
13 src = fetchFromGitHub {
14 owner = "Exzap";
15 repo = "ZArchive";
16 rev = "v${version}";
17 hash = "sha256-hX637O/mVLTzmG0a9swJu9w+3o26VHo+K/9RhMuf1lI=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21 buildInputs = [ zstd ];
22
23 meta = with lib; {
24 description = "File archive format supporting random-access reads";
25 homepage = "https://github.com/Exzap/ZArchive";
26 license = licenses.mit0;
27 maintainers = with maintainers; [ zhaofengli ];
28 mainProgram = "zarchive";
29 };
30}