From 07519fb5bda9bed605e2115924fa0b61e1df3e41 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Fri, 7 Mar 2025 14:41:20 -0500 Subject: [PATCH] is-fast: init at 0.1.3 --- pkgs/by-name/is/is-fast/package.nix | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/is/is-fast/package.nix diff --git a/pkgs/by-name/is/is-fast/package.nix b/pkgs/by-name/is/is-fast/package.nix new file mode 100644 index 000000000000..0b9f8ad566a8 --- /dev/null +++ b/pkgs/by-name/is/is-fast/package.nix @@ -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"; + }; +}