Files
nixpkgs/pkgs/by-name/zc/zchunk/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.5 KiB
Nix

{
lib,
argp-standalone,
callPackage,
curl,
fetchFromGitHub,
gitUpdater,
meson,
ninja,
pkg-config,
stdenv,
zstd,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zchunk";
version = "1.5.2";
src = fetchFromGitHub {
owner = "zchunk";
repo = "zchunk";
rev = finalAttrs.version;
hash = "sha256-TE3qNXHm6s1N7F1Rm2CcWFkyz6nywJktKJ3GL0tf2t8=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
curl
zstd
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ argp-standalone ];
outputs = [
"out"
"dev"
"lib"
"man"
];
strictDeps = true;
passthru = {
updateScript = gitUpdater { };
tests = lib.packagesFromDirectoryRecursive {
inherit callPackage;
directory = ./tests;
};
};
meta = {
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 = lib.licenses.bsd2;
mainProgram = "zck";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})