2022-05-29 23:35:32 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2022-12-27 03:50:22 +01:00
|
|
|
, 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";
|
2022-12-27 03:50:22 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|