1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 vala,
6 meson,
7 ninja,
8 wrapGAppsHook4,
9 gst_all_1,
10 libadwaita,
11 libxml2,
12 desktop-file-utils,
13 pkg-config,
14 libportal-gtk4,
15 blueprint-compiler,
16 appstream-glib,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "flowtime";
21 version = "6.5";
22
23 src = fetchFromGitHub {
24 owner = "Diego-Ivan";
25 repo = "Flowtime";
26 rev = "v${version}";
27 hash = "sha256-J0Pscv0ZOpA/LV2mPTLOmDPQpfZhizTghatGnrJHToE=";
28 };
29
30 nativeBuildInputs = [
31 blueprint-compiler
32 desktop-file-utils
33 meson
34 ninja
35 pkg-config
36 vala
37 wrapGAppsHook4
38 appstream-glib
39 ];
40
41 buildInputs = [
42 libadwaita
43 libxml2
44 libportal-gtk4
45 ]
46 ++ (with gst_all_1; [
47 gstreamer
48 gst-plugins-base
49 ]);
50
51 meta = with lib; {
52 description = "Get what motivates you done, without losing concentration";
53 mainProgram = "flowtime";
54 homepage = "https://github.com/Diego-Ivan/Flowtime";
55 license = licenses.gpl3Plus;
56 maintainers = with maintainers; [
57 foo-dogsquared
58 pokon548
59 ];
60 platforms = platforms.linux;
61 };
62}