{ 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="; }; 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"; }; }