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-02 01:57:36 +00:00
|
|
|
version = "0.17.8";
|
2022-04-21 21:23:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kimono-koans";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-02 01:57:36 +00:00
|
|
|
sha256 = "sha256-gJ7BbQOTGPbtydc6bGi/F9HW68GmqKmKjh2zIksMIoM=";
|
2022-04-21 21:23:06 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 01:57:36 +00:00
|
|
|
cargoSha256 = "sha256-FpsOHWzMV6ex9mn4mznJaFpTAyDkMvZOn0pGGKz1DGc=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|