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

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

42 lines
963 B
Nix
Raw Normal View History

2022-05-29 21:35:32 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
2022-05-29 21:35:32 +00:00
, installShellFiles
}:
2022-04-21 21:23:06 +00:00
rustPlatform.buildRustPackage rec {
pname = "httm";
2023-03-10 03:47:00 +00:00
version = "0.23.3";
2022-04-21 21:23:06 +00:00
src = fetchFromGitHub {
owner = "kimono-koans";
repo = pname;
rev = version;
2023-03-10 03:47:00 +00:00
hash = "sha256-yia7GEPemFVHzTkhrL7HejQsFO1zwpdUtq4DLdm4s2g=";
2022-04-21 21:23:06 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"skim-0.10.2" = "sha256-5bDQZer4r9sNupIilY3afXbyFE1UB8kNsZIFOPmuyu4=";
};
};
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";
changelog = "https://github.com/kimono-koans/httm/releases/tag/${version}";
2022-04-21 21:23:06 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ wyndon ];
};
}