diff --git a/pkgs/by-name/wt/wttrbar/package.nix b/pkgs/by-name/wt/wttrbar/package.nix index 23f774a4510c..3e306a7801ea 100644 --- a/pkgs/by-name/wt/wttrbar/package.nix +++ b/pkgs/by-name/wt/wttrbar/package.nix @@ -2,29 +2,35 @@ lib, fetchFromGitHub, rustPlatform, + pkg-config, + openssl, nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "wttrbar"; version = "0.12.3"; src = fetchFromGitHub { owner = "bjesus"; repo = "wttrbar"; - rev = version; + 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"; }; -} +})