Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pkgs/tools/text/grip-search/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17529,6 +17529,8 @@ in

grepm = callPackage ../applications/search/grepm { };

grip-search = callPackage ../tools/text/grip-search { };

grip = callPackage ../applications/misc/grip {
inherit (gnome2) libgnome libgnomeui vte;
};
Expand Down