blob: 4468c4a8253c55d6fcbb482dfc02c1c3d9cdf022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
testers,
fetchzip,
ripunzip,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ripunzip";
version = "2.0.4";
src = fetchFromGitHub {
owner = "GoogleChrome";
repo = "ripunzip";
rev = "v${finalAttrs.version}";
hash = "sha256-oujRw/4yKNNqLJLTN4wxaOllSUGMu077YgWZkD0DJ4M=";
};
cargoHash = "sha256-J6FtaWjeJhbSB1WoAbh6c4DeShPmqGgmh2NTNRS6CUk=";
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/GoogleChrome/ripunzip/archive/cb9caa3ba4b0e27a85e165be64c40f1f6dfcc085.zip";
hash = "sha256-BoErC5VL3Vpvkx6xJq6J+eUJrBnjVEdTuSo7zh98Jy4=";
};
version = testers.testVersion {
package = ripunzip;
};
};
meta = {
description = "Tool to unzip files in parallel";
mainProgram = "ripunzip";
homepage = "https://github.com/GoogleChrome/ripunzip";
license = with lib.licenses; [
mit
asl20
];
maintainers = [ lib.maintainers.lesuisse ];
};
})
|