silver-searcher-ng: run upstream tests
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user