Files
nixpkgs/pkgs/by-name/is/is-fast/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

54 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
pkg-config,
oniguruma,
writableTmpDirAsHomeHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "is-fast";
version = "0.17.2";
src = fetchFromGitHub {
owner = "Magic-JD";
repo = "is-fast";
tag = "v${finalAttrs.version}";
hash = "sha256-Wy5twHlCAlf/W12Y9a/IVFbsLuc8hkhH+5pBoL6Av0Y=";
};
cargoHash = "sha256-EsB/Z8HwhYBQ8HDia0IJU3U0k9ZnR558Yrv1sYLUAZ0=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ oniguruma ];
env = {
OPENSSL_NO_VENDOR = true;
RUSTONIG_SYSTEM_LIBONIG = true;
};
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
# Error creating config directory: Operation not permitted (os error 1)
# Using writableTmpDirAsHomeHomeHook is not working
"--skip=generate_config::tests::test_run_creates_config_file"
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Check the internet as fast as possible";
homepage = "https://github.com/Magic-JD/is-fast";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pwnwriter ];
mainProgram = "is-fast";
};
})