is-fast: init at 0.1.3

This commit is contained in:
pwnwriter
2025-03-10 12:13:56 -04:00
parent f9ead9c43e
commit 07519fb5bd
+50
View File
@@ -0,0 +1,50 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
oniguruma,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "is-fast";
version = "0.1.3";
src = fetchFromGitHub {
owner = "Magic-JD";
repo = "is-fast";
tag = "v${version}";
hash = "sha256-exC9xD0scCa1jYomBCewaLv2kzoxSjHhc75EhEERPR8=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-r1neLuUkWVKl7Qc4FNqW1jzX/HHyVJPEqgZV/GYkGRU=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
oniguruma
];
env = {
OPENSSL_NO_VENDOR = true;
RUSTONIG_SYSTEM_LIBONIG = true;
};
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";
};
}