mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
961fd6f475
Diff: https://gitlab.gnome.org/World/pika-backup/-/compare/v0.7.1...v0.7.2 Changelog: https://gitlab.gnome.org/World/pika-backup/-/blob/v0.7.2/CHANGELOG.md
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, rustPlatform
|
|
, substituteAll
|
|
, cargo
|
|
, desktop-file-utils
|
|
, git
|
|
, itstool
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, rustc
|
|
, wrapGAppsHook4
|
|
, borgbackup
|
|
, gtk4
|
|
, libadwaita
|
|
, libsecret
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pika-backup";
|
|
version = "0.7.2";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "pika-backup";
|
|
rev = "v${version}";
|
|
hash = "sha256-Z9vRuz5PwOhJ3DQD9zvCilgTMww7bRL4aR6fRoHIayI=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-hcfkwxwLOUBMj6rvhI5F4OO9UaSP7CAE0JNOGlh2lVY=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./borg-path.patch;
|
|
borg = lib.getExe borgbackup;
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs build-aux
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
git
|
|
itstool
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
wrapGAppsHook4
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
libadwaita
|
|
libsecret
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple backups based on borg";
|
|
homepage = "https://apps.gnome.org/app/org.gnome.World.PikaBackup";
|
|
changelog = "https://gitlab.gnome.org/World/pika-backup/-/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|