2021-03-14 12:12:11 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
|
|
|
, substituteAll
|
2023-05-12 14:17:16 +00:00
|
|
|
, cargo
|
2021-03-14 12:12:11 +00:00
|
|
|
, desktop-file-utils
|
2023-02-21 05:40:36 +00:00
|
|
|
, git
|
2022-05-16 00:10:40 +00:00
|
|
|
, itstool
|
2021-03-14 12:12:11 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2023-05-12 14:17:16 +00:00
|
|
|
, rustc
|
2022-05-16 00:10:40 +00:00
|
|
|
, wrapGAppsHook4
|
2021-03-14 12:12:11 +00:00
|
|
|
, borgbackup
|
2022-05-16 00:10:40 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libsecret
|
2021-03-14 12:12:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pika-backup";
|
2023-04-25 16:02:29 +00:00
|
|
|
version = "0.6.1";
|
2021-03-14 12:12:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "pika-backup";
|
|
|
|
rev = "v${version}";
|
2023-04-25 16:02:29 +00:00
|
|
|
hash = "sha256-7sgAp9/CKKxPr8rWbOot+FPAwaC8EPLa9pjVcC4TjW8=";
|
2021-03-14 12:12:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-04-25 16:02:29 +00:00
|
|
|
hash = "sha256-Va7qLC6WvsLmG9JVmdT1FdIlWP4W/EFmsy7JOagQ+X8=";
|
2021-03-14 12:12:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./borg-path.patch;
|
|
|
|
borg = "${borgbackup}/bin/borg";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
2023-02-21 05:40:36 +00:00
|
|
|
git
|
2022-05-16 00:10:40 +00:00
|
|
|
itstool
|
2021-03-14 12:12:11 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2022-05-16 00:10:40 +00:00
|
|
|
wrapGAppsHook4
|
2023-05-12 14:17:16 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2021-03-14 12:12:11 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-05-16 00:10:40 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libsecret
|
2021-03-14 12:12:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple backups based on borg";
|
2022-05-16 00:10:40 +00:00
|
|
|
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 ];
|
2022-03-24 09:06:50 +00:00
|
|
|
platforms = platforms.linux;
|
2021-03-14 12:12:11 +00:00
|
|
|
};
|
|
|
|
}
|