nixpkgs/pkgs/applications/backup/deja-dup/default.nix
Ryan Burns 41574158a0 libgpg-error: rename from libgpgerror
Matches pname and upstream project name
2021-10-06 18:23:43 -07:00

78 lines
1.3 KiB
Nix

{ lib, stdenv
, fetchFromGitLab
, substituteAll
, meson
, ninja
, pkg-config
, vala
, gettext
, itstool
, glib
, gtk3
, coreutils
, libsoup
, libsecret
, libhandy
, wrapGAppsHook
, libgpg-error
, json-glib
, duplicity
}:
stdenv.mkDerivation rec {
pname = "deja-dup";
version = "42.7";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
sha256 = "1q66wccnph78cp1r5mln2iq4bcqdrrchxq3c1pjrzkmzwc6l93gz";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit coreutils;
})
];
nativeBuildInputs = [
meson
ninja
pkg-config
vala
gettext
itstool
wrapGAppsHook
];
buildInputs = [
libsoup
glib
gtk3
libsecret
libhandy
libgpg-error
json-glib
];
mesonFlags = [
"-Dduplicity_command=${duplicity}/bin/duplicity"
];
meta = with 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://wiki.gnome.org/Apps/DejaDup";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
};
}