From 07519fb5bda9bed605e2115924fa0b61e1df3e41 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Fri, 7 Mar 2025 14:41:20 -0500 Subject: [PATCH 1/3] 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"; + }; +} From 897cfc19fb049aac721b94934375f5f270b0338a Mon Sep 17 00:00:00 2001 From: Nabeen Tiwaree Date: Mon, 10 Mar 2025 17:18:10 -0400 Subject: [PATCH 2/3] Update pkgs/by-name/is/is-fast/package.nix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> --- pkgs/by-name/is/is-fast/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/is/is-fast/package.nix b/pkgs/by-name/is/is-fast/package.nix index 0b9f8ad566a8..7472fa527beb 100644 --- a/pkgs/by-name/is/is-fast/package.nix +++ b/pkgs/by-name/is/is-fast/package.nix @@ -36,6 +36,12 @@ rustPlatform.buildRustPackage rec { RUSTONIG_SYSTEM_LIBONIG = true; }; + 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 { }; }; From 3012179e66b0f78e7cfea3e84fe5e733b79ed807 Mon Sep 17 00:00:00 2001 From: Nabeen Tiwaree Date: Mon, 10 Mar 2025 17:18:28 -0400 Subject: [PATCH 3/3] Update pkgs/by-name/is/is-fast/package.nix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> --- pkgs/by-name/is/is-fast/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/is/is-fast/package.nix b/pkgs/by-name/is/is-fast/package.nix index 7472fa527beb..50accab58ef5 100644 --- a/pkgs/by-name/is/is-fast/package.nix +++ b/pkgs/by-name/is/is-fast/package.nix @@ -2,20 +2,21 @@ lib, rustPlatform, fetchFromGitHub, + stdenv, pkg-config, openssl, oniguruma, nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "is-fast"; version = "0.1.3"; src = fetchFromGitHub { owner = "Magic-JD"; repo = "is-fast"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-exC9xD0scCa1jYomBCewaLv2kzoxSjHhc75EhEERPR8="; }; @@ -37,8 +38,8 @@ rustPlatform.buildRustPackage rec { }; checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ - # Error creating config directory: Operation not permitted (os error 1) - # Using writableTmpDirAsHomeHomeHook is not working + # Error creating config directory: Operation not permitted (os error 1) + # Using writableTmpDirAsHomeHomeHook is not working "--skip=generate_config::tests::test_run_creates_config_file" ]; @@ -53,4 +54,4 @@ rustPlatform.buildRustPackage rec { maintainers = with lib.maintainers; [ pwnwriter ]; mainProgram = "is-fast"; }; -} +})