Robert Schütz 2024-01-16 20:23:23 -08:00
parent c3e128f3c0
commit 41077f6bc6
2 changed files with 492 additions and 469 deletions
pkgs/tools/text/ripgrep-all

File diff suppressed because it is too large Load diff

View file

@ -11,33 +11,44 @@
, zip
}:
rustPlatform.buildRustPackage rec {
let
path = [
ffmpeg
pandoc
poppler_utils
ripgrep
zip
];
in rustPlatform.buildRustPackage rec {
pname = "ripgrep-all";
version = "1.0.0-alpha.5";
version = "0.10.6";
src = fetchFromGitHub {
owner = "phiresky";
repo = pname;
repo = "ripgrep-all";
rev = "v${version}";
sha256 = "sha256-fpDYzn4oAz6GJQef520+Vi2xI09xFjpWdAlFIAVzcoA=";
hash = "sha256-ns7RL7kiG72r07LkF6RzShNg8M2SU6tU5+gXDxzUQHM=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"tokio-tar-0.3.1" = "sha256-gp4UM6YV7P9k1FZxt3eVjyC4cK1zvpMjM5CPt2oVBEA=";
"tokio-tar-0.3.1" = "sha256-oYXcZepnQyZ13zCvECwNqbXUnov3Y6uJlpkHz1zVpRo=";
};
};
nativeBuildInputs = [ makeWrapper poppler_utils ];
buildInputs = lib.optional stdenv.isDarwin Security;
nativeCheckInputs = path;
postInstall = ''
wrapProgram $out/bin/rga \
--prefix PATH ":" "${lib.makeBinPath [ ffmpeg pandoc poppler_utils ripgrep zip ]}"
--prefix PATH ":" "${lib.makeBinPath path}"
'';
meta = with lib; {
changelog = "https://github.com/phiresky/ripgrep-all/blob/${src.rev}/CHANGELOG.md";
description = "Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, and more";
longDescription = ''
Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.