diff options
author | Daniel Schaefer <git@danielschaefer.me> | 2019-11-14 23:54:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 23:54:32 +0100 |
commit | c96e556ed7b968806974b2b473176c72d8abd0b6 (patch) | |
tree | 4755ff10aba311ce471873e83ef4626eafb1b003 /pkgs/tools/text | |
parent | c4ed79e977d848862e0635334c20e9da4b236e11 (diff) | |
parent | 2bf8cccc0d8855c98538741c27978d2be434fbf7 (diff) | |
download | nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.tar nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.tar.gz nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.tar.bz2 nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.tar.lz nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.tar.xz nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.tar.zst nixpkgs-c96e556ed7b968806974b2b473176c72d8abd0b6.zip |
grip-0.8: indexed grip (#60182)
grip-0.8: indexed grip
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/grip-search/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/text/grip-search/default.nix b/pkgs/tools/text/grip-search/default.nix new file mode 100644 index 00000000000..921691a40af --- /dev/null +++ b/pkgs/tools/text/grip-search/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, boost, pkgconfig, cmake, catch2 }: + +stdenv.mkDerivation rec { + pname = "grip-search"; + version = "0.8"; + + src = fetchFromGitHub { + owner = "sc0ty"; + repo = "grip"; + rev = "v${version}"; + sha256 = "0bkqarylgzhis6fpj48qbifcd6a26cgnq8784hgnm707rq9kb0rx"; + }; + + nativeBuildInputs = [ pkgconfig cmake catch2 ]; + + doCheck = true; + + buildInputs = [ boost ]; + + patchPhase = '' + substituteInPlace src/general/config.h --replace "CUSTOM-BUILD" "${version}" + ''; + + meta = with stdenv.lib; { + description = "Fast, indexed regexp search over large file trees"; + homepage = "https://github.com/sc0ty/grip"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ tex ]; + }; +} |