nixpkgs/pkgs/tools/filesystems/httm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
879 B
Nix
Raw Normal View History

2022-05-30 00:35:32 +03:00
{ lib
, rustPlatform
, fetchFromGitHub
2022-05-30 00:35:32 +03:00
, installShellFiles
}:
2022-04-22 00:23:06 +03:00
rustPlatform.buildRustPackage rec {
pname = "httm";
version = "0.21.1";
2022-04-22 00:23:06 +03:00
src = fetchFromGitHub {
owner = "kimono-koans";
repo = pname;
rev = version;
sha256 = "sha256-uSCFm6aWNPFPcja+KB6TU7iVVYkDdD82pFjA9dOpSs8=";
2022-04-22 00:23:06 +03:00
};
cargoHash = "sha256-uxtZ+aUUhfWGCLysOcWi5En1eRui8Ja+nyD3S2WEWQM=";
2022-04-22 00:23:06 +03:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage httm.1
installShellCompletion --cmd httm \
--zsh scripts/httm-key-bindings.zsh
'';
meta = with lib; {
2022-06-07 01:07:10 +03:00
description = "Interactive, file-level Time Machine-like tool for ZFS/btrfs";
2022-04-22 00:23:06 +03:00
homepage = "https://github.com/kimono-koans/httm";
changelog = "https://github.com/kimono-koans/httm/releases/tag/${version}";
2022-04-22 00:23:06 +03:00
license = licenses.mpl20;
maintainers = with maintainers; [ wyndon ];
};
}