nixpkgs/pkgs/applications/misc/wttrbar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
766 B
Nix
Raw Normal View History

2023-07-26 15:18:25 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "wttrbar";
2024-03-13 19:11:31 +00:00
version = "0.9.3";
2023-07-26 15:18:25 +00:00
src = fetchFromGitHub {
owner = "bjesus";
repo = "wttrbar";
rev = version;
2024-03-13 19:11:31 +00:00
hash = "sha256-9qAluu9W6OG/G1SmAEOe97mUS83PZL/oLYUsIJNunwY=";
2023-07-26 15:18:25 +00:00
};
2023-12-25 14:37:28 +00:00
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ Security SystemConfiguration ]);
2023-07-26 15:18:25 +00:00
2024-03-13 19:11:31 +00:00
cargoHash = "sha256-AVlI2Yi3Gx9jCgP2O5NfaTvUFHdw6HPRmsMqbPFvxf8=";
2023-07-26 15:18:25 +00:00
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 ];
2023-08-04 19:10:05 +00:00
mainProgram = "wttrbar";
2023-07-26 15:18:25 +00:00
};
}