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

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

43 lines
989 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
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"skim-0.10.2" = "sha256-5bDQZer4r9sNupIilY3afXbyFE1UB8kNsZIFOPmuyu4=";
};
};
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 ];
2023-11-23 22:09:35 +01:00
mainProgram = "httm";
2022-04-21 23:23:06 +02:00
};
}