2022-05-29 21:35:32 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2022-04-21 21:23:06 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "httm";
|
2022-12-03 04:20:00 +00:00
|
|
|
version = "0.17.10";
|
2022-04-21 21:23:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kimono-koans";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-03 04:20:00 +00:00
|
|
|
sha256 = "sha256-xhsZaOsEYmtx3EcKbc7cIPvrUdXl3gyl5InZ1Va0U6E=";
|
2022-04-21 21:23:06 +00:00
|
|
|
};
|
|
|
|
|
2022-12-03 04:20:00 +00:00
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
cargoSha256 = "sha256-H8LOpNKsc9CxURB+ZcQT6Uhv4aw2sx8sNdDGDCkz2SU=";
|
2022-04-21 21:23:06 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage httm.1
|
|
|
|
|
|
|
|
installShellCompletion --cmd httm \
|
|
|
|
--zsh scripts/httm-key-bindings.zsh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-06 22:07:10 +00:00
|
|
|
description = "Interactive, file-level Time Machine-like tool for ZFS/btrfs";
|
2022-04-21 21:23:06 +00:00
|
|
|
homepage = "https://github.com/kimono-koans/httm";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wyndon ];
|
|
|
|
};
|
|
|
|
}
|