2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-11-19 16:15:20 +01:00
|
|
|
, fetchFromGitLab
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-09-12 14:36:34 +02:00
|
|
|
, pkg-config
|
2019-11-19 16:15:20 +01:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, itstool
|
2022-06-06 02:38:41 +02:00
|
|
|
, desktop-file-utils
|
2019-11-19 16:15:20 +01:00
|
|
|
, glib
|
2022-02-09 22:30:39 +01:00
|
|
|
, gtk4
|
2019-11-19 16:15:20 +01:00
|
|
|
, coreutils
|
2022-02-09 22:30:39 +01:00
|
|
|
, libsoup_3
|
2019-11-19 16:15:20 +01:00
|
|
|
, libsecret
|
2022-02-09 22:30:39 +01:00
|
|
|
, libadwaita
|
|
|
|
, wrapGAppsHook4
|
2021-09-04 22:05:03 +02:00
|
|
|
, libgpg-error
|
2019-11-19 16:15:20 +01:00
|
|
|
, json-glib
|
|
|
|
, duplicity
|
2017-10-04 12:04:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-18 04:07:00 +01:00
|
|
|
pname = "deja-dup";
|
2022-07-02 02:27:57 +02:00
|
|
|
version = "43.4";
|
2017-10-04 12:04:49 +02:00
|
|
|
|
2019-01-18 04:07:00 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-02 02:27:57 +02:00
|
|
|
sha256 = "sha256-8eqrBQrMvS4cta5RP0ibo4Zc3B8hlkftxaRyvb6JuEY=";
|
2017-10-04 12:04:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2018-03-22 08:46:06 +01:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
2017-10-04 12:04:49 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-19 16:15:20 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2020-09-12 14:36:34 +02:00
|
|
|
pkg-config
|
2019-11-19 16:15:20 +01:00
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
itstool
|
2022-06-06 02:38:41 +02:00
|
|
|
desktop-file-utils
|
2022-02-09 22:30:39 +01:00
|
|
|
wrapGAppsHook4
|
2017-10-04 12:04:49 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-09 22:30:39 +01:00
|
|
|
libsoup_3
|
2019-11-19 16:15:20 +01:00
|
|
|
glib
|
2022-02-09 22:30:39 +01:00
|
|
|
gtk4
|
2019-11-19 16:15:20 +01:00
|
|
|
libsecret
|
2022-02-09 22:30:39 +01:00
|
|
|
libadwaita
|
2021-09-04 22:05:03 +02:00
|
|
|
libgpg-error
|
2019-11-19 16:15:20 +01:00
|
|
|
json-glib
|
2017-10-04 12:04:49 +02:00
|
|
|
];
|
|
|
|
|
2020-09-12 14:36:34 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dduplicity_command=${duplicity}/bin/duplicity"
|
|
|
|
];
|
2018-03-22 08:46:06 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-10-04 12:04:49 +02: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 16:15:20 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/DejaDup";
|
2019-01-18 04:07:00 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-09-19 11:12:37 +02:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2019-01-18 04:07:00 +01:00
|
|
|
platforms = platforms.linux;
|
2017-10-04 12:04:49 +02:00
|
|
|
};
|
|
|
|
}
|