2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cargo
|
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, rustc
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2024-01-02 11:29:13 +00:00
|
|
|
, libsecret
|
2023-07-15 17:15:38 +00:00
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, darwin
|
2024-01-02 11:29:13 +00:00
|
|
|
, gettext
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "done";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "done-devs";
|
|
|
|
repo = "done";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-SbeP7PnJd7jjdXa9uDIAlMAJLOrYHqNP5p9gQclb6RU=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
hash = "sha256-YJJGQR1tkK5z7vQQgkd8xPSqYhtiZIN+s9Xnwjn0z5A=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cargo
|
|
|
|
glib
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustc
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
2024-01-02 11:29:13 +00:00
|
|
|
libsecret
|
2023-07-15 17:15:38 +00:00
|
|
|
openssl
|
|
|
|
sqlite
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2024-01-02 11:29:13 +00:00
|
|
|
darwin.apple_sdk.frameworks.AppKit
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
env = lib.optionalAttrs stdenv.isDarwin {
|
|
|
|
GETTEXT_DIR = gettext;
|
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Ultimate task management solution for seamless organization and efficiency";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://done.edfloreshz.dev/";
|
|
|
|
changelog = "https://github.com/done-devs/done/blob/${src.rev}/CHANGES.md";
|
|
|
|
license = licenses.mpl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "done";
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|