Merge pull request #306783 from Flakebi/httm

httm: 0.23.3 -> 0.38.1
This commit is contained in:
Peder Bergebakken Sundt 2024-05-31 23:55:00 +02:00 committed by GitHub
commit 2e7012e863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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; {