6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
36 lines
881 B
Nix
36 lines
881 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httm";
|
|
version = "0.19.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kimono-koans";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-0diHZFD4+glTdGWWJk/5amr0mDsvKV5OibKGQNtitIk=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-Rg1wmDLmkDC25meZIe94WZ3Wp8a93VAqRJXjmaE6k18=";
|
|
|
|
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 ];
|
|
};
|
|
}
|