diff --git a/pkgs/by-name/si/silver-searcher-ng/package.nix b/pkgs/by-name/si/silver-searcher-ng/package.nix index 33885543ab23..ba71da4ed9a8 100644 --- a/pkgs/by-name/si/silver-searcher-ng/package.nix +++ b/pkgs/by-name/si/silver-searcher-ng/package.nix @@ -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";