2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-09-25 04:45:31 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, coreutils
|
|
|
|
, libsoup
|
|
|
|
, libsecret
|
2020-11-12 09:05:59 +00:00
|
|
|
, libhandy_0
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, libgpgerror
|
|
|
|
, json-glib
|
|
|
|
, duplicity
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deja-dup";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "42.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "1xgsd9a9y36lv6f2vjw2nxi9zj2zl1gv6rcyzkqajf91vgmxwf8k";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2020-09-25 04:45:31 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsoup
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libsecret
|
2020-11-12 09:05:59 +00:00
|
|
|
libhandy_0
|
2020-04-24 23:36:52 +00:00
|
|
|
libgpgerror
|
|
|
|
json-glib
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dduplicity_command=${duplicity}/bin/duplicity"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple backup tool";
|
|
|
|
longDescription = ''
|
|
|
|
Déjà Dup is a simple backup tool. It hides the complexity \
|
|
|
|
of backing up the Right Way (encrypted, off-site, and regular) \
|
|
|
|
and uses duplicity as the backend.
|
|
|
|
'';
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/DejaDup";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|