diff options
author | Ales Huzik <ahuzik@atlassian.com> | 2021-01-17 16:55:57 +1100 |
---|---|---|
committer | Ales Huzik <ahuzik@atlassian.com> | 2021-01-17 18:39:52 +1100 |
commit | 505d16f50d342ff75371dc33c7b4c29958df0227 (patch) | |
tree | 92106e0679e07341444cd2b7ec82dc15798e7408 /pkgs/applications/misc/snapper-gui | |
parent | b3616bd96400ce0252c241d76fcafb64389defc6 (diff) |
snapper-gui: init at 2020-10-20
Existing snapper-gui package at pythonPackages.snapperGUI is outdated for 6 years, broken (probably for a while) and misplaced. I weren't able to fix it, so I repackaged it taking gpodder package for inspiration
Diffstat (limited to 'pkgs/applications/misc/snapper-gui')
-rw-r--r-- | pkgs/applications/misc/snapper-gui/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/misc/snapper-gui/default.nix b/pkgs/applications/misc/snapper-gui/default.nix new file mode 100644 index 0000000000000..1746ad3f739d0 --- /dev/null +++ b/pkgs/applications/misc/snapper-gui/default.nix @@ -0,0 +1,49 @@ +{ lib, stdenv, fetchFromGitHub, python3, python3Packages +, gnome3, 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 ]; + + buildInputs = [ + python3 + gobject-introspection + gnome3.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"; + 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.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ ahuzik ]; + }; +} |