2020-12-06 04:53:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
2023-06-01 11:55:40 +00:00
|
|
|
, help2man
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-12-06 04:53:05 +00:00
|
|
|
, pkg-config
|
|
|
|
, vala
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libgee
|
2022-06-27 04:55:23 +00:00
|
|
|
, util-linux
|
2020-12-06 04:53:05 +00:00
|
|
|
, vte
|
2022-07-27 04:05:17 +00:00
|
|
|
, xapp
|
2020-12-06 04:53:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "timeshift";
|
2024-01-05 13:13:17 +00:00
|
|
|
version = "24.01.1";
|
2020-12-06 04:53:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "timeshift";
|
2022-07-18 02:14:08 +00:00
|
|
|
rev = version;
|
2024-01-05 13:13:17 +00:00
|
|
|
hash = "sha256-vAKUR0VsOuiQmB+1jPOR0KufzfXaxAsf3EOPzdgFt0A=";
|
2020-12-06 04:53:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./timeshift-launcher.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
while IFS="" read -r -d $'\0' FILE; do
|
|
|
|
substituteInPlace "$FILE" \
|
2022-06-27 04:55:23 +00:00
|
|
|
--replace "/sbin/blkid" "${util-linux}/bin/blkid"
|
2020-12-06 04:53:05 +00:00
|
|
|
done < <(find ./src -mindepth 1 -name "*.vala" -type f -print0)
|
|
|
|
substituteInPlace ./src/Utility/IconManager.vala \
|
|
|
|
--replace "/usr/share" "$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2023-06-01 11:55:40 +00:00
|
|
|
help2man
|
|
|
|
meson
|
|
|
|
ninja
|
2020-12-06 04:53:05 +00:00
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
|
|
|
vte
|
2022-07-27 04:05:17 +00:00
|
|
|
xapp
|
2020-12-06 04:53:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A system restore tool for Linux";
|
|
|
|
longDescription = ''
|
|
|
|
TimeShift creates filesystem snapshots using rsync+hardlinks or BTRFS snapshots.
|
|
|
|
Snapshots can be restored using TimeShift installed on the system or from Live CD or USB.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/linuxmint/timeshift";
|
2023-06-01 11:55:40 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-12-06 04:53:05 +00:00
|
|
|
platforms = platforms.linux;
|
2022-11-01 09:24:40 +00:00
|
|
|
maintainers = with maintainers; [ ShamrockLee bobby285271 ];
|
2020-12-06 04:53:05 +00:00
|
|
|
};
|
|
|
|
}
|