nix: replace silver-searcher with fd

The former has been removed from Nixpkgs and won't be available on the
next bump.
This commit is contained in:
Wolfgang Walther
2026-06-05 20:29:48 +00:00
parent da8738b88e
commit b114bb9395
4 changed files with 9 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
.git
+2
View File
@@ -27,3 +27,5 @@ loadtest
gen_targets.http
gen_jwk.json
gen_private.json
.pytest_cache
.ruff_cache
+2 -2
View File
@@ -5,11 +5,11 @@
, curl
, devCabalOptions
, entr
, fd
, git
, graphviz
, hsie
, nix
, silver-searcher
, stdenv
, style
, tests
@@ -41,7 +41,7 @@ let
}
''
while true; do
(! ${silver-searcher}/bin/ag -l . | ${entr}/bin/entr -dr "$_arg_command" "''${_arg_leftovers[@]}")
(! ${fd}/bin/fd -H | ${entr}/bin/entr -dr "$_arg_command" "''${_arg_leftovers[@]}")
done
'';
+4 -6
View File
@@ -3,13 +3,13 @@
, buildToolbox
, checkedShellScript
, deadnix
, fd
, git
, hlint
, hsie
, nixpkgs-fmt
, python3Packages
, ruff
, silver-searcher
, statix
, stylish-haskell
, writeText
@@ -28,8 +28,7 @@ let
${nixpkgs-fmt}/bin/nixpkgs-fmt . > /dev/null 2> /dev/null
# Format Haskell files
# --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \
${fd}/bin/fd '\.l?hs$' \
| xargs ${stylish-haskell}/bin/stylish-haskell -i
# Format Python files
@@ -82,7 +81,7 @@ let
# ruff has gaps in scanning for unused code, so we use vulture
echo "Scanning python files for unused code..."
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?py$' . \
${fd}/bin/fd '\.l?py$' \
| xargs ${python3Packages.vulture}/bin/vulture --exclude docs/conf.py --min-confidence 80
echo "Linting python files..."
@@ -92,8 +91,7 @@ let
${hsie} check-aliases main src
echo "Linting Haskell files..."
# --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \
${fd}/bin/fd '\.l?hs$' \
| xargs ${hlint}/bin/hlint --hint=${hlintConfig}
'';