nixpkgs/pkgs/applications/backup/deja-dup/default.nix

78 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitLab
, substituteAll
, meson
, ninja
, pkg-config
, vala
, gettext
, itstool
, glib
, gtk3
, coreutils
, libsoup
, libsecret
2020-10-03 23:58:42 +01:00
, libhandy_0
, wrapGAppsHook
, libgpgerror
, json-glib
, duplicity
2017-10-04 11:04:49 +01:00
}:
stdenv.mkDerivation rec {
pname = "deja-dup";
2020-12-01 19:08:34 +00:00
version = "42.6";
2017-10-04 11:04:49 +01:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
2020-12-01 19:08:34 +00:00
sha256 = "0grwlfakrnr9ij7h8lsfazlws6qix8pl50dr94cpxnnbjga9xn9z";
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 = [
meson
ninja
pkg-config
vala
gettext
itstool
wrapGAppsHook
2017-10-04 11:04:49 +01:00
];
buildInputs = [
libsoup
glib
gtk3
libsecret
2020-10-03 23:58:42 +01:00
libhandy_0
libgpgerror
json-glib
2017-10-04 11:04:49 +01:00
];
mesonFlags = [
"-Dduplicity_command=${duplicity}/bin/duplicity"
];
2018-03-22 07:46:06 +00:00
meta = with lib; {
2017-10-04 11:04:49 +01:00
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://wiki.gnome.org/Apps/DejaDup";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
2017-10-04 11:04:49 +01:00
};
}