about summary refs log tree commit diff
path: root/pkgs/by-name/fl/flowtime/package.nix
blob: d372d1d45379dddcc0e281c0897f9436e2a91fd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ stdenv
, lib
, fetchFromGitHub
, vala
, meson
, ninja
, wrapGAppsHook4
, gst_all_1
, libadwaita
, libxml2
, desktop-file-utils
, pkg-config
, libportal-gtk4
, blueprint-compiler
, appstream-glib
}:

stdenv.mkDerivation rec {
  pname = "flowtime";
  version = "6.5";

  src = fetchFromGitHub {
    owner = "Diego-Ivan";
    repo = "Flowtime";
    rev = "v${version}";
    hash = "sha256-J0Pscv0ZOpA/LV2mPTLOmDPQpfZhizTghatGnrJHToE=";
  };

  nativeBuildInputs = [
    blueprint-compiler
    desktop-file-utils
    meson
    ninja
    pkg-config
    vala
    wrapGAppsHook4
    appstream-glib
  ];

  buildInputs = [
    libadwaita
    libxml2
    libportal-gtk4
  ] ++ (with gst_all_1; [
    gstreamer
    gst-plugins-base
  ]);

  meta = with lib; {
    description = "Get what motivates you done, without losing concentration";
    mainProgram = "flowtime";
    homepage = "https://github.com/Diego-Ivan/Flowtime";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ foo-dogsquared pokon548 ];
    platforms = platforms.linux;
  };
}