nixpkgs/pkgs/by-name/wt/wttrbar/package.nix

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

34 lines
836 B
Nix
Raw Normal View History

2023-07-26 15:18:25 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
2024-03-27 02:26:22 +00:00
, nix-update-script
2023-07-26 15:18:25 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "wttrbar";
2024-03-20 21:01:32 +00:00
version = "0.9.4";
2023-07-26 15:18:25 +00:00
src = fetchFromGitHub {
owner = "bjesus";
repo = "wttrbar";
rev = version;
2024-03-20 21:01:32 +00:00
hash = "sha256-kRrVqUfkrSK/9z3Hj4J+mKcdV7JdTzjhxlVRa/kf8sw=";
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-20 21:01:32 +00:00
cargoHash = "sha256-HxSyGME95FWR5VwodmrMUX0jPlfE9SJV0WBbICuuTok=";
2023-07-26 15:18:25 +00:00
2024-03-27 02:26:22 +00:00
passthru.updateScript = nix-update-script { };
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
};
}