Files
nixpkgs/pkgs/by-name/ta/tasks/package.nix
2026-07-20 07:36:43 +00:00

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
libcosmicAppHook,
just,
libsecret,
openssl,
sqlite,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tasks";
version = "0.3.1";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "cosmic-utils";
repo = "tasks";
tag = finalAttrs.version;
hash = "sha256-gW9e+iYscJgwBdFf7QmYjnydUxrfAuS4VAoVce24eyk=";
};
cargoHash = "sha256-Ztgdtr91KvS5BssB3Sd6Z9HcZajyLZe7FYbzuF4uNXc=";
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/${finalAttrs.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";
};
})