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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zchunk";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-mZc8DC26c4hZzHsozhBmuvaIjL3ifQ7GYYGDEsBBPKc=";
|
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;
|
|
|
|
};
|
|
|
|
}
|