2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-20 04:20:00 +00:00
|
|
|
, argp-standalone
|
|
|
|
, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-03-20 04:20:00 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, zstd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zchunk";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "1.1.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zchunk";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-05 21:33:18 +00:00
|
|
|
hash = "sha256-+8FkivLTZXdu0+1wu+7T98y6rQzIHbG9l15Abrbln1o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
2021-03-20 04:20:00 +00:00
|
|
|
zstd
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional stdenv.isDarwin argp-standalone;
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/zchunk/zchunk";
|
2021-03-20 04:20:00 +00: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.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2021-03-20 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|