2019-01-18 04:07:00 +01:00
|
|
|
{ stdenv, fetchFromGitLab, substituteAll, meson, ninja, pkgconfig, vala_0_40, gettext
|
2018-03-22 08:46:06 +01:00
|
|
|
, gnome3, libnotify, itstool, glib, gtk3, libxml2
|
2019-03-23 05:50:12 +01:00
|
|
|
, coreutils, libpeas, libsecret, pcre, libxkbcommon, wrapGAppsHook
|
2018-02-25 03:23:58 +01:00
|
|
|
, libpthreadstubs, libXdmcp, epoxy, at-spi2-core, dbus, libgpgerror
|
|
|
|
, appstream-glib, desktop-file-utils, duplicity
|
2017-10-04 12:04:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-18 04:07:00 +01:00
|
|
|
pname = "deja-dup";
|
|
|
|
version = "38.3";
|
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;
|
|
|
|
sha256 = "1bnvmdlm67k1b6115x75j3nl92x5yl4psq5pna2w6cg9npxdd3fa";
|
2017-10-04 12:04:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2018-03-22 08:46:06 +01:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
2018-06-18 11:15:50 +02:00
|
|
|
./hardcode-gsettings.patch
|
2017-10-04 12:04:49 +02:00
|
|
|
];
|
|
|
|
|
2018-06-18 11:15:50 +02:00
|
|
|
postPatch = ''
|
2019-01-18 04:07:00 +01:00
|
|
|
substituteInPlace deja-dup/nautilus/NautilusExtension.c --subst-var-by DEJA_DUP_GSETTINGS_PATH $out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas
|
2018-06-18 11:15:50 +02:00
|
|
|
'';
|
|
|
|
|
2017-10-04 12:04:49 +02:00
|
|
|
nativeBuildInputs = [
|
2018-03-22 08:46:06 +01:00
|
|
|
meson ninja pkgconfig vala_0_40 gettext itstool
|
2018-02-25 03:23:58 +01:00
|
|
|
appstream-glib desktop-file-utils libxml2 wrapGAppsHook
|
2017-10-04 12:04:49 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-23 05:50:12 +01:00
|
|
|
libnotify libpeas glib gtk3 libsecret
|
2017-10-04 12:04:49 +02:00
|
|
|
pcre libxkbcommon libpthreadstubs libXdmcp epoxy gnome3.nautilus
|
2018-02-25 03:23:58 +01:00
|
|
|
at-spi2-core dbus gnome3.gnome-online-accounts libgpgerror
|
2017-10-04 12:04:49 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ duplicity ];
|
|
|
|
|
2018-04-26 22:59:34 +02:00
|
|
|
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
|
2018-03-22 08:46:06 +01:00
|
|
|
|
2017-10-04 12:04:49 +02:00
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
2017-11-04 00:44:08 +01:00
|
|
|
postFixup = ''
|
|
|
|
# Unwrap accidentally wrapped library
|
|
|
|
mv $out/libexec/deja-dup/tools/.libduplicity.so-wrapped $out/libexec/deja-dup/tools/libduplicity.so
|
|
|
|
'';
|
2017-10-04 12:04:49 +02: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-01-18 04:07:00 +01:00
|
|
|
homepage = https://wiki.gnome.org/Apps/DejaDup;
|
|
|
|
license = licenses.gpl3Plus;
|
2017-10-21 18:58:38 +02:00
|
|
|
maintainers = with maintainers; [ jtojnar joncojonathan ];
|
2019-01-18 04:07:00 +01:00
|
|
|
platforms = platforms.linux;
|
2017-10-04 12:04:49 +02:00
|
|
|
};
|
|
|
|
}
|