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-08-05 04:34:38 +00:00
|
|
|
version = "0.10.6";
|
2023-07-26 15:18:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bjesus";
|
|
|
|
repo = "wttrbar";
|
|
|
|
rev = version;
|
2024-08-05 04:34:38 +00:00
|
|
|
hash = "sha256-fuLKWooXn966RORH20D9wwbjNtyLEZOO8Y8RcjsFwqM=";
|
2023-07-26 15:18:25 +00:00
|
|
|
};
|
|
|
|
|
2023-12-25 14:37:28 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ Security SystemConfiguration ]);
|
2023-07-26 15:18:25 +00:00
|
|
|
|
2024-08-05 04:34:38 +00:00
|
|
|
cargoHash = "sha256-Of1tHKIL2XbzA6YFxtvaP9sa+KMw8uJTFG0n84g2Eog=";
|
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 = "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
|
|
|
};
|
|
|
|
}
|