silver-searcher-ng: run upstream tests

This commit is contained in:
Tim Schumacher
2026-06-14 20:13:49 +02:00
parent 67919be717
commit b2aade9cfd
@@ -3,8 +3,10 @@
stdenv,
fetchFromGitHub,
autoreconfHook,
git,
pkg-config,
pcre2,
python3Packages,
zlib,
xz,
}:
@@ -30,12 +32,26 @@ stdenv.mkDerivation (finalAttrs: {
autoreconfHook
pkg-config
];
buildInputs = [
pcre2
zlib
xz
];
doCheck = true;
nativeCheckInputs = [
python3Packages.cram
git
];
checkPhase = ''
runHook preCheck
make test
runHook postCheck
'';
meta = {
homepage = "https://github.com/silver-searcher/silver-searcher-ng";
description = "Code-searching tool similar to ack, but faster";