2017-10-04 12:04:49 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, vala_0_38, gettext
|
|
|
|
, gnome3, libnotify, intltool, itstool, glib, gtk3, libxml2
|
|
|
|
, coreutils, 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 {
|
|
|
|
name = "deja-dup-${version}";
|
2017-10-21 18:58:38 +02:00
|
|
|
version = "36.3";
|
2017-10-04 12:04:49 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/deja-dup/36/${version}/+download/deja-dup-${version}.tar.xz";
|
2017-10-21 18:58:38 +02:00
|
|
|
sha256 = "08pwybzp7ynfcf0vqxfc3p8ir4gnzcv4v4cq5bwidbff9crklhrc";
|
2017-10-04 12:04:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace libdeja/tools/duplicity/DuplicityInstance.vala --replace \
|
|
|
|
"/bin/rm" \
|
|
|
|
"${coreutils}/bin/rm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# couldn't find gio/gdesktopappinfo.h
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig vala_0_38 gettext intltool 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 = [
|
|
|
|
libnotify gnome3.libpeas glib gtk3 libsecret
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = https://launchpad.net/deja-dup;
|
|
|
|
license = with licenses; gpl3;
|
2017-10-21 18:58:38 +02:00
|
|
|
maintainers = with maintainers; [ jtojnar joncojonathan ];
|
2017-10-04 12:04:49 +02:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|