36 lines
879 B
Nix
36 lines
879 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httm";
|
|
version = "0.20.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kimono-koans";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-8SizRNjA+lvp8ZD14SoRcymhYmJXlwoeZQjrekIbdL4=";
|
|
};
|
|
|
|
cargoHash = "sha256-tXV1G0qWN0jLOKlnZfHHlOZw+wUItLzQtSg4o2f96u0=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage httm.1
|
|
|
|
installShellCompletion --cmd httm \
|
|
--zsh scripts/httm-key-bindings.zsh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactive, file-level Time Machine-like tool for ZFS/btrfs";
|
|
homepage = "https://github.com/kimono-koans/httm";
|
|
changelog = "https://github.com/kimono-koans/httm/releases/tag/${version}";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ wyndon ];
|
|
};
|
|
}
|