nixpkgs/pkgs/applications/backup/pika-backup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.4 KiB
Nix
Raw Normal View History

2021-03-14 12:12:11 +00:00
{ lib
, stdenv
, fetchFromGitLab
, rustPlatform
, substituteAll
, cargo
2021-03-14 12:12:11 +00:00
, desktop-file-utils
, git
, itstool
2021-03-14 12:12:11 +00:00
, meson
, ninja
, pkg-config
, python3
, rustc
, wrapGAppsHook4
2021-03-14 12:12:11 +00:00
, borgbackup
, gtk4
, libadwaita
, libsecret
2021-03-14 12:12:11 +00:00
}:
stdenv.mkDerivation rec {
pname = "pika-backup";
version = "0.7.0";
2021-03-14 12:12:11 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "pika-backup";
rev = "v${version}";
hash = "sha256-WeFc/4TEIxw6uzLroJX1D/rEA419sghkjBt1nsPv2Ho=";
2021-03-14 12:12:11 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-fgPgUZxye9YUyX9/+hTye3cUypgRAegZMUTKfPxVH4s=";
2021-03-14 12:12:11 +00:00
};
patches = [
(substituteAll {
src = ./borg-path.patch;
borg = lib.getExe borgbackup;
2021-03-14 12:12:11 +00:00
})
];
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
desktop-file-utils
git
itstool
2021-03-14 12:12:11 +00:00
meson
ninja
pkg-config
python3
wrapGAppsHook4
rustPlatform.cargoSetupHook
cargo
rustc
];
2021-03-14 12:12:11 +00:00
buildInputs = [
gtk4
libadwaita
libsecret
2021-03-14 12:12:11 +00:00
];
meta = with lib; {
description = "Simple backups based on borg";
homepage = "https://apps.gnome.org/app/org.gnome.World.PikaBackup";
2021-03-14 12:12:11 +00:00
changelog = "https://gitlab.gnome.org/World/pika-backup/-/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux;
2021-03-14 12:12:11 +00:00
};
}