nixpkgs/pkgs/development/libraries/zchunk/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2021-03-23 20:24:49 +01:00
{ lib
, stdenv
, fetchFromGitHub
2021-03-23 20:24:49 +01:00
, argp-standalone
, curl
, meson
, ninja
2021-03-23 20:24:49 +01:00
, pkg-config
, zstd
}:
stdenv.mkDerivation rec {
pname = "zchunk";
2021-06-08 18:42:37 +02:00
version = "1.1.11";
outputs = [ "out" "lib" "dev" ];
src = fetchFromGitHub {
owner = "zchunk";
repo = pname;
rev = version;
2021-06-08 18:42:37 +02:00
hash = "sha256-r+qWJOUnTyPJjM9eW44Q2DMKxx4HloyfNrQ6xWDO9vQ=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
curl
2021-03-23 20:24:49 +01:00
zstd
] ++ lib.optional stdenv.isDarwin argp-standalone;
meta = with lib; {
homepage = "https://github.com/zchunk/zchunk";
2021-03-23 20:24:49 +01:00
description = "File format designed for highly efficient deltas while maintaining good compression";
longDescription = ''
zchunk is a compressed file format that splits the file into independent
chunks. This allows you to only download changed chunks when downloading a
new version of the file, and also makes zchunk files efficient over rsync.
zchunk files are protected with strong checksums to verify that the file
you downloaded is, in fact, the file you wanted.
'';
license = licenses.bsd2;
2021-03-23 20:24:49 +01:00
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}