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

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