depot/third_party/nixpkgs/pkgs/tools/text/ugrep/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

54 lines
961 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, boost
, brotli
, bzip2
, bzip3
, lz4
, pcre2
, testers
, xz
, zlib
, zstd
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ugrep";
version = "6.0.0";
src = fetchFromGitHub {
owner = "Genivia";
repo = "ugrep";
rev = "v${finalAttrs.version}";
hash = "sha256-jZWmWZ4ZkmtdEI7BJ4cg1PBAuue8sjA7aiGotv2WmB4=";
};
buildInputs = [
boost
brotli
bzip2
bzip3
lz4
pcre2
xz
zlib
zstd
];
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
};
meta = with lib; {
description = "Ultra fast grep with interactive query UI";
homepage = "https://github.com/Genivia/ugrep";
changelog = "https://github.com/Genivia/ugrep/releases/tag/v${finalAttrs.version}";
maintainers = with maintainers; [ numkem mikaelfangel ];
license = licenses.bsd3;
platforms = platforms.all;
mainProgram = "ug";
};
})