2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-11-19 15:15:20 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-09-12 13:36:34 +01:00
|
|
|
, pkg-config
|
2019-11-19 15:15:20 +00:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, coreutils
|
|
|
|
, libsoup
|
|
|
|
, libsecret
|
2021-04-15 01:25:37 +01:00
|
|
|
, libhandy
|
2019-11-19 15:15:20 +00:00
|
|
|
, wrapGAppsHook
|
2021-09-04 21:05:03 +01:00
|
|
|
, libgpg-error
|
2019-11-19 15:15:20 +00:00
|
|
|
, json-glib
|
|
|
|
, duplicity
|
2017-10-04 11:04:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-18 03:07:00 +00:00
|
|
|
pname = "deja-dup";
|
2021-12-11 11:50:34 +00:00
|
|
|
version = "42.8";
|
2017-10-04 11:04:49 +01:00
|
|
|
|
2019-01-18 03:07:00 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-11 11:50:34 +00:00
|
|
|
sha256 = "sha256-DkRqZAj47wzt4lDvhAbO0PYcRA7oHEo2k69IMLOD3Ps=";
|
2017-10-04 11:04:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2018-03-22 07:46:06 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
2017-10-04 11:04:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-19 15:15:20 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-09-12 13:36:34 +01:00
|
|
|
pkg-config
|
2019-11-19 15:15:20 +00:00
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
2017-10-04 11:04:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-19 15:15:20 +00:00
|
|
|
libsoup
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libsecret
|
2021-04-15 01:25:37 +01:00
|
|
|
libhandy
|
2021-09-04 21:05:03 +01:00
|
|
|
libgpg-error
|
2019-11-19 15:15:20 +00:00
|
|
|
json-glib
|
2017-10-04 11:04:49 +01:00
|
|
|
];
|
|
|
|
|
2020-09-12 13:36:34 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dduplicity_command=${duplicity}/bin/duplicity"
|
|
|
|
];
|
2018-03-22 07:46:06 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-04 11:04:49 +01:00
|
|
|
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.
|
|
|
|
'';
|
2019-11-19 15:15:20 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/DejaDup";
|
2019-01-18 03:07:00 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-09-19 10:12:37 +01:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2019-01-18 03:07:00 +00:00
|
|
|
platforms = platforms.linux;
|
2017-10-04 11:04:49 +01:00
|
|
|
};
|
|
|
|
}
|