mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
31 lines
766 B
Nix
31 lines
766 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wttrbar";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bjesus";
|
|
repo = "wttrbar";
|
|
rev = version;
|
|
hash = "sha256-AGIUMw4lvYiUJol4VYS+ozNMsCDNGPCsg+fwMlpWEJY=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ Security SystemConfiguration ]);
|
|
|
|
cargoHash = "sha256-3FDY0SUl1lb9jUjUj14j/5gF5NoSpS1PMj1AtXr/4Hk=";
|
|
|
|
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 ];
|
|
mainProgram = "wttrbar";
|
|
};
|
|
}
|