forked from mirrors/nixpkgs
Merge pull request #117396 from AndersonTorres/new-zchunk
zchunk: 1.1.8 -> 1.1.9
This commit is contained in:
commit
f1ad232f80
|
@ -1,17 +1,17 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, argp-standalone
|
||||||
, pkg-config
|
, curl
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
|
, pkg-config
|
||||||
, zstd
|
, zstd
|
||||||
, curl
|
|
||||||
, argp-standalone
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "zchunk";
|
pname = "zchunk";
|
||||||
version = "1.1.8";
|
version = "1.1.9";
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" ];
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
owner = "zchunk";
|
owner = "zchunk";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0q1jafxh5nqgn2w5ciljkh8h46xma0qia8a5rj9m0pxixcacqj6q";
|
hash = "sha256-MqnHtqOjLl6R5GZ4f2UX1iLoO9FUT2IfZlSN58wW8JA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -29,25 +29,23 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zstd
|
|
||||||
curl
|
curl
|
||||||
|
zstd
|
||||||
] ++ lib.optional stdenv.isDarwin argp-standalone;
|
] ++ lib.optional stdenv.isDarwin argp-standalone;
|
||||||
|
|
||||||
# Darwin needs a patch for argp-standalone usage and differing endian.h location on macOS
|
|
||||||
# https://github.com/zchunk/zchunk/pull/35
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "darwin-support.patch";
|
|
||||||
url = "https://github.com/zchunk/zchunk/commit/f7db2ac0a95028a7f82ecb89862426bf53a69232.patch";
|
|
||||||
sha256 = "0cm84gyii4ly6nsmagk15g9kbfa13rw395nqk3fdcwm0dpixlkh4";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "File format designed for highly efficient deltas while maintaining good compression";
|
|
||||||
homepage = "https://github.com/zchunk/zchunk";
|
homepage = "https://github.com/zchunk/zchunk";
|
||||||
|
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;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue