mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
37 lines
819 B
Nix
37 lines
819 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httm";
|
|
version = "0.12.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kimono-koans";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "gly3P4b6MlhJA/Qre6S0iFGBaY0Hi/u4hzlirdTdZoc=";
|
|
};
|
|
|
|
cargoSha256 = "fq4RVJT6u2ST4Nu9zAnfcXZQqWe8gdC4cFwrJzFums4=";
|
|
|
|
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";
|
|
license = licenses.mpl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ wyndon ];
|
|
};
|
|
}
|