2019-11-19 15:15:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, gnome3
|
|
|
|
, libnotify
|
|
|
|
, itstool
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libxml2
|
|
|
|
, gnome-online-accounts
|
|
|
|
, coreutils
|
|
|
|
, libsoup
|
|
|
|
, libsecret
|
|
|
|
, pcre
|
|
|
|
, libxkbcommon
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libpthreadstubs
|
|
|
|
, libXdmcp
|
|
|
|
, epoxy
|
|
|
|
, at-spi2-core
|
|
|
|
, dbus
|
|
|
|
, libgpgerror
|
|
|
|
, json-glib
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, duplicity
|
2017-10-04 11:04:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-18 03:07:00 +00:00
|
|
|
pname = "deja-dup";
|
2019-11-19 15:15:20 +00:00
|
|
|
version = "40.4";
|
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;
|
2019-11-19 15:15:20 +00:00
|
|
|
sha256 = "0x9z8z1mh1sxi28ilml3pvbc0g6ghcbyiy002rziwwlarxnbwkky";
|
2017-10-04 11:04:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2018-03-22 07:46:06 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
2019-11-19 15:15:20 +00:00
|
|
|
|
|
|
|
# Hardcode GSettings path for Nautilus extension to avoid crashes from missing schemas
|
2018-06-18 10:15:50 +01:00
|
|
|
./hardcode-gsettings.patch
|
2017-10-04 11:04:49 +01:00
|
|
|
];
|
|
|
|
|
2018-06-18 10:15:50 +01:00
|
|
|
postPatch = ''
|
2019-11-19 15:15:20 +00:00
|
|
|
# substitute variable from hardcode-gsettings.patch
|
|
|
|
substituteInPlace deja-dup/nautilus/NautilusExtension.c --subst-var-by DEJA_DUP_GSETTINGS_PATH "${glib.makeSchemaPath (placeholder "out") "${pname}-${version}"}"
|
2018-06-18 10:15:50 +01:00
|
|
|
'';
|
|
|
|
|
2017-10-04 11:04:49 +01:00
|
|
|
nativeBuildInputs = [
|
2019-11-19 15:15:20 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
libxml2
|
|
|
|
wrapGAppsHook
|
2017-10-04 11:04:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-19 15:15:20 +00:00
|
|
|
libnotify
|
|
|
|
libsoup
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libsecret
|
|
|
|
pcre
|
|
|
|
libxkbcommon
|
|
|
|
libpthreadstubs
|
|
|
|
libXdmcp
|
|
|
|
epoxy
|
|
|
|
gnome3.nautilus
|
|
|
|
at-spi2-core
|
|
|
|
dbus
|
|
|
|
gnome-online-accounts # GOA not used any more, only for transferring legacy keys
|
|
|
|
libgpgerror
|
|
|
|
json-glib
|
2017-10-04 11:04:49 +01:00
|
|
|
];
|
|
|
|
|
2019-11-19 15:15:20 +00:00
|
|
|
# TODO: hard code the path
|
|
|
|
# https://gitlab.gnome.org/World/deja-dup/merge_requests/32
|
2017-10-04 11:04:49 +01:00
|
|
|
propagatedUserEnvPkgs = [ duplicity ];
|
|
|
|
|
2019-11-19 15:15:20 +00:00
|
|
|
# install nautilus plug-in to correct path
|
2018-04-26 21:59:34 +01:00
|
|
|
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
|
2018-03-22 07:46:06 +00:00
|
|
|
|
2017-10-04 11:04:49 +01: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.
|
|
|
|
'';
|
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;
|
2017-10-21 17:58:38 +01:00
|
|
|
maintainers = with maintainers; [ jtojnar joncojonathan ];
|
2019-01-18 03:07:00 +00:00
|
|
|
platforms = platforms.linux;
|
2017-10-04 11:04:49 +01:00
|
|
|
};
|
|
|
|
}
|