Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
998 B
Nix
45 lines
998 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wthrr";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ttytm";
|
|
repo = "wthrr-the-weathercrab";
|
|
rev = "v${version}";
|
|
hash = "sha256-8o84FFdcEPRtbsxWCc97tTGGownxlhpIM71GiBRT6uM=";
|
|
};
|
|
|
|
cargoHash = "sha256-q2WkdSb6UKY1/Aut3W70vCQPsqhqv6DPuT40RaGZWAM=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
checkFlags = [
|
|
# requires internet access
|
|
"--skip=modules::localization::tests::translate_string"
|
|
"--skip=modules::location::tests::geolocation_response"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Weather companion for the terminal";
|
|
homepage = "https://github.com/ttytm/wthrr-the-weathercrab";
|
|
changelog = "https://github.com/ttytm/wthrr-the-weathercrab/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "wthrr";
|
|
};
|
|
}
|