Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / done / default.nix
blob86089abea5d03edfb167ace79974f1e40bcaeb68
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cargo
5 , glib
6 , meson
7 , ninja
8 , pkg-config
9 , rustPlatform
10 , rustc
11 , wrapGAppsHook4
12 , gdk-pixbuf
13 , gtk4
14 , libadwaita
15 , openssl
16 , sqlite
17 , darwin
20 stdenv.mkDerivation rec {
21   pname = "done";
22   version = "0.1.7";
24   src = fetchFromGitHub {
25     owner = "done-devs";
26     repo = "done";
27     rev = "v${version}";
28     hash = "sha256-MLCb96jr3YWODZ6xh4fcyFnL5RjFDcEjHKnDD8Gysy8=";
29   };
31   cargoDeps = rustPlatform.importCargoLock {
32     lockFile = ./Cargo.lock;
33     outputHashes = {
34       "directories-4.0.1" = "sha256-4M8WstNq5I7UduIUZI9q1R9oazp7MDBRBRBHZv6iGWI=";
35       "libset-0.1.2" = "sha256-+eA6pqafIYomXdlvwSzT/b/T4Je5HgPPmGL2M11VpMU=";
36     };
37   };
39   nativeBuildInputs = [
40     cargo
41     glib
42     meson
43     ninja
44     pkg-config
45     rustPlatform.cargoSetupHook
46     rustc
47     wrapGAppsHook4
48   ];
50   buildInputs = [
51     gdk-pixbuf
52     gtk4
53     libadwaita
54     openssl
55     sqlite
56   ] ++ lib.optionals stdenv.isDarwin [
57     darwin.apple_sdk.frameworks.Foundation
58   ];
60   meta = with lib; {
61     description = "The ultimate task management solution for seamless organization and efficiency";
62     homepage = "https://done.edfloreshz.dev/";
63     changelog = "https://github.com/done-devs/done/blob/${src.rev}/CHANGES.md";
64     license = licenses.mpl20;
65     maintainers = with maintainers; [ figsoda ];
66   };