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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{
lib,
stdenv,
fetchFromGitLab,
rustPlatform,
cargo,
desktop-file-utils,
appstream-glib,
blueprint-compiler,
meson,
ninja,
pkg-config,
rustc,
wrapGAppsHook4,
python3,
git,
glib,
gtk4,
gst_all_1,
libadwaita,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "solanum";
version = "5.0.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Solanum";
rev = version;
hash = "sha256-Xf/b/9o6zHF1hjHSyAXb90ySoBj+DMMe31e6RfF8C4Y=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
name = "${pname}-${version}";
hash = "sha256-jtMTW9tIf0UGbE9bJU31maub+o0agf0pDRO4s9QReyc=";
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
python3
git
desktop-file-utils
appstream-glib
blueprint-compiler
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = [
glib
gtk4
libadwaita
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-bad
];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/Solanum";
description = "Pomodoro timer for the GNOME desktop";
maintainers = with maintainers; [ linsui ] ++ lib.teams.gnome-circle.members;
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "solanum";
};
}
|