4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
36 lines
879 B
Nix
36 lines
879 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httm";
|
|
version = "0.22.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kimono-koans";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-noFMb/7OR1epmsaO7pDuov3TffNKuY1NgT5cKUFpJuY=";
|
|
};
|
|
|
|
cargoHash = "sha256-68KdTB7Dg3qEivgt9cOIBy310QbfUVAojfh9gotHycE=";
|
|
|
|
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 ];
|
|
};
|
|
}
|