1{
2 lib,
3 stdenv,
4 rustPlatform,
5 fetchFromGitHub,
6 libcosmicAppHook,
7 just,
8 libsecret,
9 openssl,
10 sqlite,
11 nix-update-script,
12}:
13
14rustPlatform.buildRustPackage rec {
15 pname = "tasks";
16 version = "0.2.0";
17
18 src = fetchFromGitHub {
19 owner = "cosmic-utils";
20 repo = "tasks";
21 tag = version;
22 hash = "sha256-R8wXIw9Gn4uyLoXxyjp/bcK8vK7NkG/chcHe8LtTvo8=";
23 };
24
25 cargoHash = "sha256-iJutA18TvsWJceacfhzfEQa5zaQBMVC7fmtF1uPN3sQ=";
26
27 nativeBuildInputs = [
28 libcosmicAppHook
29 just
30 ];
31
32 buildInputs = [
33 libsecret
34 openssl
35 sqlite
36 ];
37
38 dontUseJustBuild = true;
39 dontUseJustCheck = true;
40
41 justFlags = [
42 "--set"
43 "prefix"
44 (placeholder "out")
45 "--set"
46 "bin-src"
47 "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/tasks"
48 ];
49
50 passthru = {
51 updateScript = nix-update-script { };
52 };
53
54 meta = {
55 changelog = "https://github.com/cosmic-utils/tasks/releases/tag/${version}";
56 description = "Simple task management application for the COSMIC desktop";
57 homepage = "https://github.com/cosmic-utils/tasks";
58 license = lib.licenses.gpl3Only;
59 maintainers = with lib.maintainers; [
60 GaetanLepage
61 HeitorAugustoLN
62 ];
63 platforms = lib.platforms.linux;
64 mainProgram = "tasks";
65 };
66}