summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2020-11-30 16:55:03 -0300
committerGitHub <noreply@github.com>2020-11-30 16:55:03 -0300
commit881dee52844051f792040ef43d578547c71f36ed (patch)
treebe88218fcc8c59a8b4622901fc122b656db288ae /pkgs/tools/text
parent208d049eab2abedef14ba49e96afbb95e659eebf (diff)
parent4bcdf302e1d7a592cbda23a11b7797d16c79f0c9 (diff)
Merge pull request #105411 from AndersonTorres/wip-ucg
ucg: init at 20190225
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/ucg/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/text/ucg/default.nix b/pkgs/tools/text/ucg/default.nix
new file mode 100644
index 000000000000..db8984536804
--- /dev/null
+++ b/pkgs/tools/text/ucg/default.nix
@@ -0,0 +1,40 @@
+{ stdenv
+, fetchFromGitHub
+, pkg-config
+, autoreconfHook
+, pcre
+, nixosTests
+}:
+
+let
+ pname = "ucg";
+ version = "20190225";
+in stdenv.mkDerivation {
+ inherit pname version;
+
+ src = fetchFromGitHub {
+ owner = "gvansickle";
+ repo = pname;
+ rev = "c3a67632f1e3f332bfb102f0db167f34a2e42da7";
+ sha256 = "sha256-/wU1PmI4ejlv7gZzZNasgROYXFiDiIxE9BFoCo6+G5Y=";
+ };
+
+ nativeBuildInputs = [ autoreconfHook pkg-config ];
+ buildInputs = [ pcre ];
+
+ meta = with stdenv.lib; {
+ homepage = "https://github.com/gvansickle/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 = licenses.gpl3Plus;
+ maintainers = with maintainers; [ AndersonTorres ];
+ platforms = with platforms; unix;
+ };
+
+ passthru.tests = { inherit (nixosTests) ucg; };
+}