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

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

39 lines
876 B
Nix
Raw Normal View History

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