nixpkgs/pkgs/by-name/ta/tasks/package.nix
2025-06-02 05:52:38 +00:00

67 lines
1.3 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
libcosmicAppHook,
just,
libsecret,
openssl,
sqlite,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "tasks";
version = "0.2.0";
src = fetchFromGitHub {
owner = "cosmic-utils";
repo = "tasks";
tag = version;
hash = "sha256-R8wXIw9Gn4uyLoXxyjp/bcK8vK7NkG/chcHe8LtTvo8=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-iJutA18TvsWJceacfhzfEQa5zaQBMVC7fmtF1uPN3sQ=";
nativeBuildInputs = [
libcosmicAppHook
just
];
buildInputs = [
libsecret
openssl
sqlite
];
dontUseJustBuild = true;
dontUseJustCheck = true;
justFlags = [
"--set"
"prefix"
(placeholder "out")
"--set"
"bin-src"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/tasks"
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/cosmic-utils/tasks/releases/tag/${version}";
description = "Simple task management application for the COSMIC desktop";
homepage = "https://github.com/cosmic-utils/tasks";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
GaetanLepage
HeitorAugustoLN
];
platforms = lib.platforms.linux;
mainProgram = "tasks";
};
}