about summary refs log tree commit diff
path: root/pkgs/applications/misc/snapper-gui/default.nix
blob: c82b0813f78baf2781d11d0125599fbab0851cc0 (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
{ lib, fetchFromGitHub, python3, python3Packages
, gnome, gtk3, wrapGAppsHook, gtksourceview3, snapper
, gobject-introspection
}:

python3Packages.buildPythonApplication rec {
  pname = "snapper-gui";
  version = "2020-10-20";

  src = fetchFromGitHub {
    owner = "ricardomv";
    repo = pname;
    rev = "f0c67abe0e10cc9e2ebed400cf80ecdf763fb1d1";
    sha256 = "13j4spbi9pxg69zifzai8ifk4207sn0vwh6vjqryi0snd5sylh7h";
  };

  nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];

  buildInputs = [
    python3
    gnome.adwaita-icon-theme
  ];

  doCheck = false; # it doesn't have any tests

  propagatedBuildInputs = with python3Packages; [
    gtk3
    dbus-python
    pygobject3
    setuptools
    gtksourceview3
    snapper
  ];

  meta = with lib; {
    description = "Graphical interface for snapper";
    mainProgram = "snapper-gui";
    longDescription = ''
      A graphical user interface for the tool snapper for Linux filesystem
      snapshot management. It can compare snapshots and revert differences between snapshots.
      In simple terms, this allows root and non-root users to view older versions of files
      and revert changes. Currently works with btrfs, ext4 and thin-provisioned LVM volumes.
    '';
    homepage = "https://github.com/ricardomv/snapper-gui";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ahuzik ];
  };
}