httm: 0.23.3 -> 0.38.1

This commit is contained in:
Bart Brouns 2023-11-15 11:57:09 +01:00 committed by Sebastian Neubauer
parent 572af610f6
commit 9a031ecea7
No known key found for this signature in database
2 changed files with 715 additions and 578 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,29 +6,37 @@
rustPlatform.buildRustPackage rec {
pname = "httm";
version = "0.23.3";
version = "0.38.1";
src = fetchFromGitHub {
owner = "kimono-koans";
repo = pname;
rev = version;
hash = "sha256-yia7GEPemFVHzTkhrL7HejQsFO1zwpdUtq4DLdm4s2g=";
hash = "sha256-aCWhjMXLNx5/wV1HFDtyUuUfpRAxDZhI/Bk7roqZkJ8=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"skim-0.10.2" = "sha256-5bDQZer4r9sNupIilY3afXbyFE1UB8kNsZIFOPmuyu4=";
};
};
nativeBuildInputs = [ installShellFiles ];
postPatch = ''
chmod +x scripts/*.bash
patchShebangs scripts/*.bash
'';
postInstall = ''
installManPage httm.1
installShellCompletion --cmd httm \
--zsh scripts/httm-key-bindings.zsh
for script in scripts/*.bash; do
install -Dm755 "$script" "$out/bin/$(basename "$script" .bash)"
done
install -Dm644 README.md $out/share/doc/README.md
'';
meta = with lib; {