git.iko.soy/typeable/nixpkgs
on master help sign in
agrep: init at 3.41.5

In category `tools`, subcategory `text`, add a package definition for the program [`agrep`] [1] — "Approximate `grep` for fast fuzzy string searching". I have tested this patch per nixpkgs manual section 11.1 ("Making patches"). [1]: <https://www.tgries.de/agrep/>

commit0033f6076ee5c462722bf6077c40ff7949ae6020 authorc74d <8573dd@gmail.com> dateSat 5 Nov 2016, 08:51 (10 years ago) parent321e2a9
2 files changed+28
pkgs/tools/text/agrep/default.nix+26 pkgs/top-level/all-packages.nix+2
pkgs/tools/text/agrep/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ name = "agrep-${version}";
5+ version = "3.41.5";
6+
7+ src = fetchFromGitHub {
8+ owner = "Wikinaut";
9+ repo = "agrep";
10+ # This repository has numbered versions, but not Git tags.
11+ rev = "eef20411d605d9d17ead07a0ade75046f2728e21";
12+ sha256 = "14addnwspdf2mxpqyrw8b84bb2257y43g5ccy4ipgrr91fmxq2sk";
13+ };
14+
15+ installPhase = ''
16+ install -Dm 555 agrep -t "$out/bin"
17+ install -Dm 444 docs/* -t "$out/doc"
18+ '';
19+
20+ meta = {
21+ description = "Approximate grep for fast fuzzy string searching";
22+ homepage = "https://www.tgries.de/agrep/";
23+ license = stdenv.lib.licenses.isc;
24+ platforms = stdenv.lib.platforms.linux;
25+ };
26+}
pkgs/top-level/all-packages.nix+2
@@ -367,6 +367,8 @@ in
367367
368368 afpfs-ng = callPackage ../tools/filesystems/afpfs-ng/default.nix { };
369369
370+ agrep = callPackage ../tools/text/agrep { };
371+
370372 aha = callPackage ../tools/text/aha { };
371373
372374 ahcpd = callPackage ../tools/networking/ahcpd { };