3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/backup/deja-dup/default.nix

61 lines
1.8 KiB
Nix
Raw Normal View History

2018-03-22 07:46:06 +00:00
{ stdenv, fetchurl, substituteAll, meson, ninja, pkgconfig, vala_0_40, gettext
, gnome3, libnotify, itstool, glib, gtk3, libxml2
2017-10-04 11:04:49 +01:00
, coreutils, libsecret, pcre, libxkbcommon, wrapGAppsHook
, libpthreadstubs, libXdmcp, epoxy, at-spi2-core, dbus, libgpgerror
, appstream-glib, desktop-file-utils, duplicity
2017-10-04 11:04:49 +01:00
}:
stdenv.mkDerivation rec {
name = "deja-dup-${version}";
version = "36.3";
2017-10-04 11:04:49 +01:00
src = fetchurl {
url = "https://launchpad.net/deja-dup/36/${version}/+download/deja-dup-${version}.tar.xz";
sha256 = "08pwybzp7ynfcf0vqxfc3p8ir4gnzcv4v4cq5bwidbff9crklhrc";
2017-10-04 11:04:49 +01:00
};
patches = [
2018-03-22 07:46:06 +00:00
(substituteAll {
src = ./fix-paths.patch;
inherit coreutils;
})
2017-10-04 11:04:49 +01:00
];
nativeBuildInputs = [
2018-03-22 07:46:06 +00:00
meson ninja pkgconfig vala_0_40 gettext itstool
appstream-glib desktop-file-utils libxml2 wrapGAppsHook
2017-10-04 11:04:49 +01:00
];
buildInputs = [
libnotify gnome3.libpeas glib gtk3 libsecret
pcre libxkbcommon libpthreadstubs libXdmcp epoxy gnome3.nautilus
at-spi2-core dbus gnome3.gnome-online-accounts libgpgerror
2017-10-04 11:04:49 +01:00
];
propagatedUserEnvPkgs = [ duplicity ];
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "lib/nautilus/extensions-3.0";
2018-03-22 07:46:06 +00:00
2017-10-04 11:04:49 +01:00
postInstall = ''
glib-compile-schemas $out/share/glib-2.0/schemas
'';
postFixup = ''
# Unwrap accidentally wrapped library
mv $out/libexec/deja-dup/tools/.libduplicity.so-wrapped $out/libexec/deja-dup/tools/libduplicity.so
'';
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.
'';
homepage = https://launchpad.net/deja-dup;
license = with licenses; gpl3;
maintainers = with maintainers; [ jtojnar joncojonathan ];
2017-10-04 11:04:49 +01:00
platforms = with platforms; linux;
};
}