diff options
author | Austin Horstman <khaneliman12@gmail.com> | 2023-07-26 10:18:25 -0500 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-07-28 08:18:47 -0300 |
commit | 6c05a4c70ca92a313486e4a54d47489b6c05c7e5 (patch) | |
tree | 65e2472f5b91139d5449e0c23c8fbd78844b0c33 /pkgs/applications | |
parent | 7bc72fa4711a80ed5ef9f5de42dae2bce1dd2382 (diff) |
wttrbar: init at 0.3.2
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/wttrbar/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/misc/wttrbar/default.nix b/pkgs/applications/misc/wttrbar/default.nix new file mode 100644 index 0000000000000..90ec71e97575a --- /dev/null +++ b/pkgs/applications/misc/wttrbar/default.nix @@ -0,0 +1,29 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "wttrbar"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "bjesus"; + repo = "wttrbar"; + rev = version; + hash = "sha256-RQeRDu8x6OQAD7VYT7FwBfj8gxn1nj6hP60oCIiuAgg="; + }; + + buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk_11_0.frameworks.Security ]; + + cargoHash = "sha256-hJCEA6m/iZuSjWRbbaoJ5ryG0z5U/IWhbEvNAohFyjg="; + + meta = { + description = "A simple but detailed weather indicator for Waybar using wttr.in"; + homepage = "https://github.com/bjesus/wttrbar"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ khaneliman ]; + }; +} |