Skip to content

Commit 6b4d950

Browse files
authored
is-fast: init at 0.1.3 (#388004)
2 parents 2941e01 + 3012179 commit 6b4d950

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
stdenv,
6+
pkg-config,
7+
openssl,
8+
oniguruma,
9+
nix-update-script,
10+
}:
11+
12+
rustPlatform.buildRustPackage (finalAttrs: {
13+
pname = "is-fast";
14+
version = "0.1.3";
15+
16+
src = fetchFromGitHub {
17+
owner = "Magic-JD";
18+
repo = "is-fast";
19+
tag = "v${finalAttrs.version}";
20+
hash = "sha256-exC9xD0scCa1jYomBCewaLv2kzoxSjHhc75EhEERPR8=";
21+
};
22+
23+
useFetchCargoVendor = true;
24+
cargoHash = "sha256-r1neLuUkWVKl7Qc4FNqW1jzX/HHyVJPEqgZV/GYkGRU=";
25+
26+
nativeBuildInputs = [
27+
pkg-config
28+
];
29+
30+
buildInputs = [
31+
openssl
32+
oniguruma
33+
];
34+
35+
env = {
36+
OPENSSL_NO_VENDOR = true;
37+
RUSTONIG_SYSTEM_LIBONIG = true;
38+
};
39+
40+
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
41+
# Error creating config directory: Operation not permitted (os error 1)
42+
# Using writableTmpDirAsHomeHomeHook is not working
43+
"--skip=generate_config::tests::test_run_creates_config_file"
44+
];
45+
46+
passthru = {
47+
updateScript = nix-update-script { };
48+
};
49+
50+
meta = {
51+
description = "Check the internet as fast as possible";
52+
homepage = "https://github.com/Magic-JD/is-fast";
53+
license = lib.licenses.mit;
54+
maintainers = with lib.maintainers; [ pwnwriter ];
55+
mainProgram = "is-fast";
56+
};
57+
})

0 commit comments

Comments
 (0)