Change:
<del> { stdenv, lib, fetchFromGitHub, rustPlatform, makeWrapper, ffmpeg , pandoc, poppler_utils, ripgrep, Security, imagemagick, tesseract3 </del> <ins> { stdenv , lib , fetchFromGitHub , rustPlatform , makeWrapper , ffmpeg , pandoc , poppler_utils , ripgrep , Security , zip </ins> }: rustPlatform.buildRustPackage rec { pname = "ripgrep-all"; <del> version = "0.9.6"; </del> <ins> version = "1.0.0-alpha.5"; </ins> src = fetchFromGitHub { owner = "phiresky"; repo = pname; rev = "v${version}"; <del> sha256 = "1wjpgi7m3lxybllkr3r60zaphp02ykq2syq72q9ail2760cjcir6"; </del> <ins> sha256 = "sha256-fpDYzn4oAz6GJQef520+Vi2xI09xFjpWdAlFIAVzcoA="; </ins> }; <del> cargoSha256 = "1l71xj5crfb51wfp2bdvdqp1l8kg182n5d6w23lq2wjszaqcj7cw"; nativeBuildInputs = [ makeWrapper ]; </del> <ins> cargoLock = { lockFile = ./Cargo.lock; outputHashes = { "tokio-tar-0.3.1" = "sha256-gp4UM6YV7P9k1FZxt3eVjyC4cK1zvpMjM5CPt2oVBEA="; }; }; nativeBuildInputs = [ makeWrapper poppler_utils ]; </ins> buildInputs = lib.optional stdenv.isDarwin Security; postInstall = '' wrapProgram $out/bin/rga  <del> --prefix PATH ":" "${lib.makeBinPath [ ffmpeg pandoc poppler_utils ripgrep imagemagick tesseract3 ]}" ''; # Use upstream's example data to run a couple of queries to ensure the dependencies # for all of the adapters are available. installCheckPhase = '' set -e export PATH="$PATH:$out/bin" test1=$(rga --rga-no-cache "hello" exampledir/ | wc -l) test2=$(rga --rga-no-cache --rga-adapters=tesseract "crate" exampledir/screenshot.png | wc -l) if [ $test1 != 26 ] then echo "ERROR: test1 failed! Could not find the word 'hello' 26 times in the sample data." exit 1 fi if [ $test2 != 1 ] then echo "ERROR: test2 failed! Could not find the word 'crate' in the screenshot." exit 1 fi </del> <ins> --prefix PATH ":" "${lib.makeBinPath [ ffmpeg pandoc poppler_utils ripgrep zip ]}" </ins> ''; <del> doInstallCheck = true; </del> meta = with lib; { description = "Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, and more"; longDescription = ''

Discussion:
Steps to reproduce the behavior: error: builder for '/nix/store/md5x85n2jdc3rxxi8i8nbb63g3qvp866-ripgrep-all-' failed with exit code 1; last 10 log lines:
For full logs, run 'nix log /nix/store/md5x85n2jdc3rxxi8i8nbb63g3qvp866-ripgrep-all-'. console [user nix-shell -p nix-info --run "nix-info -m" system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
Upstream hasn't released a more recent version, fwiw. Probably best to cherry-pick the patch?
For me the patch fails to apply cleanly on current (unstable) nixpkgs: <details<summaryBuild log</summary</details
And I just checked, the (which changes the options passed to pandoc, I believe from skimming the diff), cannot be applied stand-alone either, since the file does not exist in 0.9.6, which nixpkgs ships :(
?
Yes, but that is in the commit -- vs
GitHub won't let me upload it here, so here's a . That patch can be applied to the 0.9.6 version and allows the tests to pass again. Does this approach sound feasible to you? I would open a PR then...
I'm wondering if it's really better to keep patching 0.9.6 or updating directly to 1.0.0-alpha.5 in unstable and do a backport. Sure there are quite but if this issue went unnoticed all this time, the likelihood we'll actually break someone's usage is pretty low.
I tried updating to , . In particular does not seem to work. I would advise patching until .
Tesseract Adapter was removed and won't make it back in 1.0 either
I also tried it. Other than missing Tesseract, was there anything else not good?
I had this issue with ripgrep-all when trying to upgrade from NixOS 23.05 to unstable.

As a workaround/mitigation strategy, I installed to get NixOS upgraded to unstable. So I'm using ripgrep-all 0.9.7-alpha.0 from nur.... Contents of my /nix/store: -r--r--r-- 2 root root 4.1K Jan 1 1970 xgfijrdsgsp9r8jf77m18dr4lyifzf6l-ripgrep-all-0.9.7-infdev- -r--r--r-- 2 root root 4.0K Jan 1 1970 jcpsrykb4r2q2yi6hp444lrb5wckq3yz-ripgrep-13.0.0- -r--r--r-- 2 root root 4.2K Jan 1 1970 dc1m3gfpvr0xzyxlha729bj4whvhnb1n-ripgrep-all-0.9.7- -r--r--r-- 2 root root 4.2K Jan 1 1970 49gqfknllbfj9p8hg9iqivzbhk42ah3g-ripgrep-all-0.9.7- -r--r--r-- 2 root root 3.9K Jan 1 1970 155qhfj2zr7a7p1dz2qrb870sh0vm57w-ripgrep-
Any updates on this?
IMHO, we should use the 1.0 branch. Appart from tesseract, it seems to work just fine, and that doesn't leave us depending on patches.
Created a PR to use 1.0 branch here: Tests run during build, the custom ones did no longer work. Also had to change the dependencies, tessaract is no longer needed.