mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
90 lines
1.6 KiB
Nix
90 lines
1.6 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, substituteAll
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala
|
|
, gettext
|
|
, itstool
|
|
, desktop-file-utils
|
|
, glib
|
|
, gtk4
|
|
, coreutils
|
|
, libsoup_3
|
|
, libsecret
|
|
, libadwaita
|
|
, wrapGAppsHook4
|
|
, libgpg-error
|
|
, json-glib
|
|
, duplicity
|
|
, rclone
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "deja-dup";
|
|
version = "46.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "deja-dup";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-tKVY0wewBDx0AMzmTdko8vGg5bNGfYohgcSDg5Oky30=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
inherit coreutils;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
gettext
|
|
itstool
|
|
desktop-file-utils
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
libsoup_3
|
|
glib
|
|
gtk4
|
|
libsecret
|
|
libadwaita
|
|
libgpg-error
|
|
json-glib
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dduplicity_command=${lib.getExe duplicity}"
|
|
"-Drclone_command=${lib.getExe rclone}"
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
# Required by duplicity
|
|
--prefix PATH : "${lib.makeBinPath [ rclone ]}"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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://apps.gnome.org/DejaDup/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "deja-dup";
|
|
};
|
|
})
|