nixpkgs-suyu/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
833 B
Nix
Raw Normal View History

2022-05-29 23:35:32 +02:00
{ lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
}:
2022-04-21 23:23:06 +02:00
rustPlatform.buildRustPackage rec {
pname = "httm";
2022-08-05 13:52:00 +02:00
version = "0.14.8";
2022-04-21 23:23:06 +02:00
src = fetchFromGitHub {
owner = "kimono-koans";
repo = pname;
rev = version;
2022-08-05 13:52:00 +02:00
sha256 = "sha256-PakfSEQCp4LG7mInJvPKFnpRqI7HVr5BxEOM2TronXQ=";
2022-04-21 23:23:06 +02:00
};
2022-08-05 13:52:00 +02:00
cargoSha256 = "sha256-hCoStHD+RG700IBXMV4I007mzFvaKk/bVpnte3cigYk=";
2022-04-21 23:23:06 +02:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage httm.1
installShellCompletion --cmd httm \
--zsh scripts/httm-key-bindings.zsh
'';
meta = with lib; {
2022-06-07 00:07:10 +02:00
description = "Interactive, file-level Time Machine-like tool for ZFS/btrfs";
2022-04-21 23:23:06 +02:00
homepage = "https://github.com/kimono-koans/httm";
license = licenses.mpl20;
platforms = platforms.unix;
maintainers = with maintainers; [ wyndon ];
};
}