889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
36 lines
819 B
Nix
36 lines
819 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httm";
|
|
version = "0.12.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kimono-koans";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "gly3P4b6MlhJA/Qre6S0iFGBaY0Hi/u4hzlirdTdZoc=";
|
|
};
|
|
|
|
cargoSha256 = "fq4RVJT6u2ST4Nu9zAnfcXZQqWe8gdC4cFwrJzFums4=";
|
|
|
|
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";
|
|
license = licenses.mpl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ wyndon ];
|
|
};
|
|
}
|