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

File diff suppressed because it is too large Load diff

View file

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