diff options
author | wyndon <git_pzpbjt5v@riseup.net> | 2022-04-21 23:23:06 +0200 |
---|---|---|
committer | wyndon <git_pzpbjt5v@riseup.net> | 2022-04-22 00:54:59 +0200 |
commit | 260470a1b274548a9ae734da034bc41ee7b6fa31 (patch) | |
tree | f0fc2dffdef400c1536176873d3498f24c7aefd9 /pkgs/tools/filesystems/httm | |
parent | 46bfd333ea4c3a2c8dc937d8d388ac821002ac35 (diff) |
httm: init at 0.9.0
Diffstat (limited to 'pkgs/tools/filesystems/httm')
-rw-r--r-- | pkgs/tools/filesystems/httm/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/httm/default.nix b/pkgs/tools/filesystems/httm/default.nix new file mode 100644 index 0000000000000..5c0bc74245f62 --- /dev/null +++ b/pkgs/tools/filesystems/httm/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchFromGitHub, rustPlatform, installShellFiles }: + +rustPlatform.buildRustPackage rec { + pname = "httm"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "kimono-koans"; + repo = pname; + rev = version; + sha256 = "sha256-uqzwS7+OQsPdMv3+fWdn3yVFJwtFZNd8kVWw//mQZj8="; + }; + + cargoSha256 = "sha256-EC3E5NawsDe+CU5WEu0G3FWVLuqW5nXOoUURN0iDPK0="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage httm.1 + + installShellCompletion --cmd httm \ + --zsh scripts/httm-key-bindings.zsh + ''; + + meta = with lib; { + description = "Interactive, file-level ZFS Time Machine-like tool"; + homepage = "https://github.com/kimono-koans/httm"; + license = licenses.mpl20; + platforms = platforms.unix; + maintainers = with maintainers; [ wyndon ]; + }; +} |