2025-08-02 15:35:29 +02:00

37 lines
903 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "wttrbar";
version = "0.12.3";
src = fetchFromGitHub {
owner = "bjesus";
repo = "wttrbar";
tag = finalAttrs.version;
hash = "sha256-gJJnmJ1dpKVCRZtzL1R86s607hOCHTpsFDPsQKOnvvA=";
};
cargoHash = "sha256-WMRDUAefYjXY03EqTZf3VNJuypxu07RTyDmdlB6a0kk=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Simple but detailed weather indicator for Waybar using wttr.in";
homepage = "https://github.com/bjesus/wttrbar";
changelog = "https://github.com/bjesus/wttrbar/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
mainProgram = "wttrbar";
};
})