mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
78 lines
1.3 KiB
Nix
78 lines
1.3 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, substituteAll
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala
|
|
, gettext
|
|
, itstool
|
|
, glib
|
|
, gtk3
|
|
, coreutils
|
|
, libsoup
|
|
, libsecret
|
|
, libhandy_0
|
|
, wrapGAppsHook
|
|
, libgpgerror
|
|
, json-glib
|
|
, duplicity
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "deja-dup";
|
|
version = "42.6";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0grwlfakrnr9ij7h8lsfazlws6qix8pl50dr94cpxnnbjga9xn9z";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
inherit coreutils;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
gettext
|
|
itstool
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libsoup
|
|
glib
|
|
gtk3
|
|
libsecret
|
|
libhandy_0
|
|
libgpgerror
|
|
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;
|
|
};
|
|
}
|