about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorAustin Horstman <khaneliman12@gmail.com>2023-07-26 10:18:25 -0500
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-07-28 08:18:47 -0300
commit6c05a4c70ca92a313486e4a54d47489b6c05c7e5 (patch)
tree65e2472f5b91139d5449e0c23c8fbd78844b0c33 /pkgs/applications
parent7bc72fa4711a80ed5ef9f5de42dae2bce1dd2382 (diff)
wttrbar: init at 0.3.2
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/wttrbar/default.nix29
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 ];
+  };
+}