nixpkgs/pkgs/applications/backup/timeshift/unwrapped.nix

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

71 lines
1.4 KiB
Nix
Raw Normal View History

2020-12-06 04:53:05 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gettext
, 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
, xapp
2020-12-06 04:53:05 +00:00
}:
stdenv.mkDerivation rec {
pname = "timeshift";
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;
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
help2man
meson
ninja
2020-12-06 04:53:05 +00:00
pkg-config
vala
];
buildInputs = [
gtk3
json-glib
libgee
vte
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";
license = licenses.gpl2Plus;
2020-12-06 04:53:05 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ ShamrockLee bobby285271 ];
2020-12-06 04:53:05 +00:00
};
}