depot/third_party/nixpkgs/pkgs/by-name/uc/ucg/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

54 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, callPackage
, pkg-config
, pcre
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ucg";
version = "unstable-2022-09-03";
src = fetchFromGitHub {
owner = "gvansickle";
repo = "ucg";
rev = "cbb185e8adad6546b7e1c5e9ca59a81f98dca49f";
hash = "sha256-Osdyxp8DoEjcr2wQLCPqOQ2zQf/0JWYxaDpZB02ACWo=";
};
outputs = [ "out" "man" ];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
pcre
];
passthru.tests = {
simple = callPackage ./tests/simple.nix {
ucg = finalAttrs.finalPackage;
};
};
meta = {
homepage = "https://gvansickle.github.io/ucg/";
description = "Grep-like tool for searching large bodies of source code";
longDescription = ''
UniversalCodeGrep (ucg) is an extremely fast grep-like tool specialized
for searching large bodies of source code. It is intended to be largely
command-line compatible with Ack, to some extent with ag, and where
appropriate with grep. Search patterns are specified as PCRE regexes.
'';
license = lib.licenses.gpl3Plus;
mainProgram = "ucg";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
broken = stdenv.isAarch64 || stdenv.isDarwin;
};
})
# TODO: report upstream