From 038c6af60d18fe49cd0c55241e6265d883ca094a Mon Sep 17 00:00:00 2001 From: sudo-mac Date: Thu, 19 Feb 2026 03:16:18 -0500 Subject: [PATCH] weathr: init at 1.4.0 Signed-off-by: sudo-mac merge format checkv --- pkgs/by-name/we/weathr/package.nix | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/we/weathr/package.nix diff --git a/pkgs/by-name/we/weathr/package.nix b/pkgs/by-name/we/weathr/package.nix new file mode 100644 index 000000000000..693d018b22ce --- /dev/null +++ b/pkgs/by-name/we/weathr/package.nix @@ -0,0 +1,41 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "weathr"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "veirt"; + repo = "weathr"; + tag = "v${finalAttrs.version}"; + hash = "sha256-BaG8K17RNuswtGx74CEBzMKjFMaNW0RZ5FjM3EfSVTE="; + }; + + cargoHash = "sha256-xIjFleANgzoTS+4Yky+mvtX1IeU6IdaH1YuB8W8bYIo="; + + # These test fail due to internet access requirement + checkFlags = [ + "--skip=test_cache_invalidation" + "--skip=test_weather_client_integration_cache_behavior" + "--skip=test_weather_client_integration_cache_invalidation" + "--skip=test_weather_client_integration_realistic_weather_ranges" + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + meta = { + description = "Terminal weather app with ascii animation"; + homepage = "https://github.com/veirt/weathr"; + license = with lib.licenses; [ gpl3Plus ]; + maintainers = with lib.maintainers; [ + sudo-mac + phanirithvij + ]; + mainProgram = "weathr"; + }; +})