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
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
|
|
# nativeBuildInputs
|
|
libcosmicAppHook,
|
|
just,
|
|
|
|
# buildInputs
|
|
openssl,
|
|
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "forecast";
|
|
version = "0-unstable-2025-10-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cosmic-utils";
|
|
repo = "forecast";
|
|
rev = "e384cacb53dc58656f56659409060fc16f6a2351";
|
|
hash = "sha256-BkL4B4RXcntDUjDy5UPUaxSglzcM3h3kKq5LsCtCukw=";
|
|
};
|
|
|
|
cargoHash = "sha256-aiKxgUnW711c2vhXDKVt0USTUZD6CyWB3tT6UzjqNSg=";
|
|
|
|
nativeBuildInputs = [
|
|
libcosmicAppHook
|
|
just
|
|
];
|
|
|
|
dontUseJustBuild = true;
|
|
dontUseJustCheck = true;
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
justFlags = [
|
|
"--set"
|
|
"prefix"
|
|
(placeholder "out")
|
|
"--set"
|
|
"bin-src"
|
|
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-ext-forecast"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"branch=HEAD"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Weather app written in rust and libcosmic";
|
|
homepage = "https://github.com/cosmic-utils/forecast";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
GaetanLepage
|
|
HeitorAugustoLN
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "cosmic-ext-forecast";
|
|
};
|
|
}
|