2021-03-15 08:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
|
|
|
, substituteAll
|
|
|
|
, desktop-file-utils
|
2023-03-04 12:14:45 +00:00
|
|
|
, git
|
2022-06-16 17:23:12 +00:00
|
|
|
, itstool
|
2021-03-15 08:37:03 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2022-06-16 17:23:12 +00:00
|
|
|
, wrapGAppsHook4
|
2021-03-15 08:37:03 +00:00
|
|
|
, borgbackup
|
2022-06-16 17:23:12 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libsecret
|
2021-03-15 08:37:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pika-backup";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.6.0";
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "pika-backup";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-eI2MRrW6MID4dMHR1OjDT83xd/9CgDuhAWpEHmhnMVw=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-hbh4kfQcym0n2cCp2ebljQpizolsxyfZk7ctKOlDybA=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./borg-path.patch;
|
|
|
|
borg = "${borgbackup}/bin/borg";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
2023-03-04 12:14:45 +00:00
|
|
|
git
|
2022-06-16 17:23:12 +00:00
|
|
|
itstool
|
2021-03-15 08:37:03 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2022-06-16 17:23:12 +00:00
|
|
|
wrapGAppsHook4
|
2021-03-15 08:37:03 +00:00
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libsecret
|
2021-03-15 08:37:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple backups based on borg";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://apps.gnome.org/app/org.gnome.World.PikaBackup";
|
2021-03-15 08:37:03 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/World/pika-backup/-/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2022-03-30 09:31:56 +00:00
|
|
|
platforms = platforms.linux;
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
}
|