lol
1{ lib, fetchFromGitHub, python3, python3Packages
2, gnome, gtk3, wrapGAppsHook, gtksourceview3, snapper
3, gobject-introspection
4}:
5
6python3Packages.buildPythonApplication rec {
7 pname = "snapper-gui";
8 version = "2020-10-20";
9
10 src = fetchFromGitHub {
11 owner = "ricardomv";
12 repo = pname;
13 rev = "f0c67abe0e10cc9e2ebed400cf80ecdf763fb1d1";
14 sha256 = "13j4spbi9pxg69zifzai8ifk4207sn0vwh6vjqryi0snd5sylh7h";
15 };
16
17 nativeBuildInputs = [ wrapGAppsHook ];
18
19 buildInputs = [
20 python3
21 gobject-introspection
22 gnome.adwaita-icon-theme
23 ];
24
25 doCheck = false; # it doesn't have any tests
26
27 propagatedBuildInputs = with python3Packages; [
28 gtk3
29 dbus-python
30 pygobject3
31 setuptools
32 gtksourceview3
33 snapper
34 ];
35
36 meta = with lib; {
37 description = "Graphical interface for snapper";
38 longDescription = ''
39 A graphical user interface for the tool snapper for Linux filesystem
40 snapshot management. It can compare snapshots and revert differences between snapshots.
41 In simple terms, this allows root and non-root users to view older versions of files
42 and revert changes. Currently works with btrfs, ext4 and thin-provisioned LVM volumes.
43 '';
44 homepage = "https://github.com/ricardomv/snapper-gui";
45 license = licenses.gpl2Plus;
46 platforms = platforms.linux;
47 maintainers = with maintainers; [ ahuzik ];
48 };
49}