71 lines
1.3 KiB
Nix
71 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-07-03";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cosmic-utils";
|
|
repo = "forecast";
|
|
rev = "066dfdd33bb9df6e70e0567ed87f1dd4107328be";
|
|
hash = "sha256-5XBB0kQ6gJVO4NT+RbWw0QUA3RHr7iIeIcNB/66w+FA=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-mZ6nVQo83/o1fAVcHJGPqulBaQtE/8MJk3eLBAUoMmc=";
|
|
|
|
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";
|
|
};
|
|
}
|