Files
nixpkgs/pkgs/by-name/ri/ripunzip/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

68 lines
2.0 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
testers,
fetchzip,
ripunzip,
}:
rustPlatform.buildRustPackage rec {
pname = "ripunzip";
version = "2.0.3";
src = fetchFromGitHub {
owner = "google";
repo = "ripunzip";
rev = "v${version}";
hash = "sha256-giNaTALPZYOfQ+kPyQufbRTdTwwKLK7iDvg50YNfzDg=";
};
cargoHash = "sha256-uz07yZBkmBTEGB64rhBYQ2iL0KbrY4UAM96utv8HCSE=";
buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ];
checkFlags = [
# Skip tests involving network
"--skip=unzip::http_range_reader::tests::test_with_accept_range"
"--skip=unzip::http_range_reader::tests::test_without_accept_range"
"--skip=unzip::seekable_http_reader::tests::test_big_readahead"
"--skip=unzip::seekable_http_reader::tests::test_random_access"
"--skip=unzip::seekable_http_reader::tests::test_small_readahead"
"--skip=unzip::seekable_http_reader::tests::test_unlimited_readahead"
"--skip=unzip::tests::test_extract_biggish_zip_from_ranges_server"
"--skip=unzip::tests::test_extract_from_server"
"--skip=unzip::tests::test_small_zip_from_no_content_length_server"
"--skip=unzip::tests::test_small_zip_from_no_range_server"
"--skip=unzip::tests::test_small_zip_from_ranges_server"
];
setupHook = ./setup-hook.sh;
passthru.tests = {
fetchzipWithRipunzip =
testers.invalidateFetcherByDrvHash (fetchzip.override { unzip = ripunzip; })
{
url = "https://github.com/google/ripunzip/archive/cb9caa3ba4b0e27a85e165be64c40f1f6dfcc085.zip";
hash = "sha256-BoErC5VL3Vpvkx6xJq6J+eUJrBnjVEdTuSo7zh98Jy4=";
};
version = testers.testVersion {
package = ripunzip;
};
};
meta = with lib; {
description = "Tool to unzip files in parallel";
mainProgram = "ripunzip";
homepage = "https://github.com/google/ripunzip";
license = with lib.licenses; [
mit
asl20
];
maintainers = [ maintainers.lesuisse ];
};
}