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 12:36:34 +00:00
|
|
|
, pkg-config
|
2019-11-19 15:15:20 +00:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, itstool
|
2022-06-06 00:38:41 +00:00
|
|
|
, desktop-file-utils
|
2019-11-19 15:15:20 +00:00
|
|
|
, glib
|
2022-02-09 21:30:39 +00:00
|
|
|
, gtk4
|
2019-11-19 15:15:20 +00:00
|
|
|
, coreutils
|
2022-02-09 21:30:39 +00:00
|
|
|
, libsoup_3
|
2019-11-19 15:15:20 +00:00
|
|
|
, libsecret
|
2022-02-09 21:30:39 +00:00
|
|
|
, libadwaita
|
|
|
|
, wrapGAppsHook4
|
2021-09-04 20:05:03 +00:00
|
|
|
, libgpg-error
|
2019-11-19 15:15:20 +00:00
|
|
|
, json-glib
|
|
|
|
, duplicity
|
2024-07-01 14:34:33 +00:00
|
|
|
, rclone
|
2017-10-04 10:04:49 +00:00
|
|
|
}:
|
|
|
|
|
2023-12-24 11:52:24 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-01-18 03:07:00 +00:00
|
|
|
pname = "deja-dup";
|
2024-07-01 14:34:33 +00:00
|
|
|
version = "46.1";
|
2017-10-04 10:04:49 +00:00
|
|
|
|
2019-01-18 03:07:00 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
2023-07-05 17:01:15 +00:00
|
|
|
repo = "deja-dup";
|
2023-12-24 11:52:24 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-07-01 14:34:33 +00:00
|
|
|
hash = "sha256-tKVY0wewBDx0AMzmTdko8vGg5bNGfYohgcSDg5Oky30=";
|
2017-10-04 10:04:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2018-03-22 07:46:06 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
2017-10-04 10:04:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-19 15:15:20 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-09-12 12:36:34 +00:00
|
|
|
pkg-config
|
2019-11-19 15:15:20 +00:00
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
itstool
|
2022-06-06 00:38:41 +00:00
|
|
|
desktop-file-utils
|
2022-02-09 21:30:39 +00:00
|
|
|
wrapGAppsHook4
|
2017-10-04 10:04:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-09 21:30:39 +00:00
|
|
|
libsoup_3
|
2019-11-19 15:15:20 +00:00
|
|
|
glib
|
2022-02-09 21:30:39 +00:00
|
|
|
gtk4
|
2019-11-19 15:15:20 +00:00
|
|
|
libsecret
|
2022-02-09 21:30:39 +00:00
|
|
|
libadwaita
|
2021-09-04 20:05:03 +00:00
|
|
|
libgpg-error
|
2019-11-19 15:15:20 +00:00
|
|
|
json-glib
|
2017-10-04 10:04:49 +00:00
|
|
|
];
|
|
|
|
|
2020-09-12 12:36:34 +00:00
|
|
|
mesonFlags = [
|
2024-07-01 14:34:33 +00:00
|
|
|
"-Dduplicity_command=${lib.getExe duplicity}"
|
|
|
|
"-Drclone_command=${lib.getExe rclone}"
|
2020-09-12 12:36:34 +00:00
|
|
|
];
|
2018-03-22 07:46:06 +00:00
|
|
|
|
2024-07-01 14:34:33 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Required by duplicity
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ rclone ]}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-04 10:04:49 +00:00
|
|
|
description = "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.
|
|
|
|
'';
|
2024-05-01 03:44:27 +00:00
|
|
|
homepage = "https://apps.gnome.org/DejaDup/";
|
2019-01-18 03:07:00 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-09-19 09:12:37 +00:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2019-01-18 03:07:00 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "deja-dup";
|
2017-10-04 10:04:49 +00:00
|
|
|
};
|
2023-12-24 11:52:24 +00:00
|
|
|
})
|