From f7fd04296dbf1d96b04ba411bf729e96431ca899 Mon Sep 17 00:00:00 2001 From: Jose Garcia <501jag3@gmail.com> Date: Sun, 27 Sep 2026 19:20:56 -0500 Subject: [PATCH] rustormy: init at 0.5.2 (cherry picked from commit 44c43afccc3e7426045775614dcc2eccf82c7d5d) --- pkgs/by-name/ru/rustormy/package.nix | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/ru/rustormy/package.nix diff --git a/pkgs/by-name/ru/rustormy/package.nix b/pkgs/by-name/ru/rustormy/package.nix new file mode 100644 index 000000000000..aa274753554e --- /dev/null +++ b/pkgs/by-name/ru/rustormy/package.nix @@ -0,0 +1,51 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "rustormy"; + version = "0.5.2"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "tairesh"; + repo = "rustormy"; + tag = "v${finalAttrs.version}"; + hash = "sha256-LC6hHxCG9TnXcRIxg2jAt6+r8Rm6Iu/TiX/neW5d4fk="; + }; + + cargoHash = "sha256-cvL+OAiGidQEltM/cgjzjeEFbM7IZvhIG5Q3Nxybb1w="; + + checkFlags = [ + "--skip=tests::test_different_units" + "--skip=tests::test_empty_city" + "--skip=tests::test_no_location_provided" + "--skip=tests::test_nonexistent_city" + "--skip=tests::test_valid_city_lookup" + "--skip=tests::test_valid_coordinates" + "--skip=weather::enrich::tests::does_not_overwrite_false_is_day_when_set" + "--skip=weather::enrich::tests::does_not_overwrite_true_is_day_when_set" + "--skip=weather::enrich::tests::does_not_overwrite_uv_when_set" + "--skip=weather::enrich::tests::fills_is_day_when_none" + "--skip=weather::enrich::tests::openuv_failure_does_not_break_enrich" + "--skip=weather::enrich::tests::skips_uv_when_openuv_key_empty" + ]; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + doInstallCheck = true; + + meta = { + description = "Minimal neofetch-like weather CLI"; + homepage = "https://github.com/tairesh/rustormy"; + license = lib.licenses.mit; + mainProgram = "rustormy"; + maintainers = with lib.maintainers; [ joseg313 ]; + }; + +})