2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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
|
2022-06-16 17:23:12 +00:00
|
|
|
, desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
2022-02-20 05:27:41 +00:00
|
|
|
, gtk4
|
2020-04-24 23:36:52 +00:00
|
|
|
, coreutils
|
2022-02-20 05:27:41 +00:00
|
|
|
, libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsecret
|
2022-02-20 05:27:41 +00:00
|
|
|
, libadwaita
|
|
|
|
, wrapGAppsHook4
|
2021-10-08 15:17:17 +00:00
|
|
|
, libgpg-error
|
2020-04-24 23:36:52 +00:00
|
|
|
, json-glib
|
|
|
|
, duplicity
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deja-dup";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "43.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-8eqrBQrMvS4cta5RP0ibo4Zc3B8hlkftxaRyvb6JuEY=";
|
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
|
2022-06-16 17:23:12 +00:00
|
|
|
desktop-file-utils
|
2022-02-20 05:27:41 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
glib
|
2022-02-20 05:27:41 +00:00
|
|
|
gtk4
|
2020-04-24 23:36:52 +00:00
|
|
|
libsecret
|
2022-02-20 05:27:41 +00:00
|
|
|
libadwaita
|
2021-10-08 15:17:17 +00:00
|
|
|
libgpg-error
|
2020-04-24 23:36:52 +00:00
|
|
|
json-glib
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dduplicity_command=${duplicity}/bin/duplicity"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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.
|
|
|
|
'';
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|