83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
33 lines
835 B
Nix
33 lines
835 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
, nix-update-script
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wttrbar";
|
|
version = "0.10.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bjesus";
|
|
repo = "wttrbar";
|
|
rev = version;
|
|
hash = "sha256-2DaFbwzxpV5vNOey9me/Tj5t9idszTZHoj1cl4RkoeE=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ Security SystemConfiguration ]);
|
|
|
|
cargoHash = "sha256-rbsRW+c3rzHCMwFQAS22tIfbwudaqpVmRsGXFKOEWkQ=";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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 ];
|
|
mainProgram = "wttrbar";
|
|
};
|
|
}
|