git.iko.soy/typeable/nixpkgs
on master help sign in
grip-0.8: indexed grip (#60182)

grip-0.8: indexed grip

commitc96e556ed7b968806974b2b473176c72d8abd0b6 authorDaniel Schaefer <git@danielschaefer.me> dateThu 14 Nov 2019, 23:54 (7 years ago) parentc4ed79e2bf8ccc
2 files changed+33
pkgs/tools/text/grip-search/default.nix+31 pkgs/top-level/all-packages.nix+2
pkgs/tools/text/grip-search/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, boost, pkgconfig, cmake, catch2 }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "grip-search";
5+ version = "0.8";
6+
7+ src = fetchFromGitHub {
8+ owner = "sc0ty";
9+ repo = "grip";
10+ rev = "v${version}";
11+ sha256 = "0bkqarylgzhis6fpj48qbifcd6a26cgnq8784hgnm707rq9kb0rx";
12+ };
13+
14+ nativeBuildInputs = [ pkgconfig cmake catch2 ];
15+
16+ doCheck = true;
17+
18+ buildInputs = [ boost ];
19+
20+ patchPhase = ''
21+ substituteInPlace src/general/config.h --replace "CUSTOM-BUILD" "${version}"
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ description = "Fast, indexed regexp search over large file trees";
26+ homepage = "https://github.com/sc0ty/grip";
27+ license = licenses.gpl3;
28+ platforms = platforms.all;
29+ maintainers = with maintainers; [ tex ];
30+ };
31+}
pkgs/top-level/all-packages.nix+2
@@ -18740,6 +18740,8 @@ in
1874018740
1874118741 grepm = callPackage ../applications/search/grepm { };
1874218742
18743+ grip-search = callPackage ../tools/text/grip-search { };
18744+
1874318745 grip = callPackage ../applications/misc/grip {
1874418746 inherit (gnome2) libgnome libgnomeui vte;
1874518747 };