Skip to content
Closed
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
25 changes: 25 additions & 0 deletions pkgs/tools/text/gripgen/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ boost, catch2, cmake, fetchFromGitHub, stdenv }:

stdenv.mkDerivation rec {
pname = "gripgen";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pname = "gripgen";
pname = "grip";

gripgen is only the tool to generate the database. (Also change commit and all-packages.nix)

Copy link
Contributor Author

@Azulinho Azulinho Nov 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grip is already taken,
Its some gui app, that's why I used gripgen

Ideally, we should have all our pkgs namespaced,

`tools.text.grip

but that's another battle

version = "0.8";

src = fetchFromGitHub {
owner = "sc0ty";
repo = "grip";
rev = "v${version}";
sha256 = "0bkqarylgzhis6fpj48qbifcd6a26cgnq8784hgnm707rq9kb0rx";
};

buildInputs = [ boost catch2 ];
nativeBuildInputs = [ cmake ];

doCheck = true;

meta = with stdenv.lib; {
homepage = "https://github.com/sc0ty/grip/";
description = "Indexed grep - fast search (grep like) in huge stack of files.";
license = licenses.gpl3;
platforms = platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,8 @@ in

gringo = callPackage ../tools/misc/gringo { };

gripgen = callPackage ../tools/text/gripgen { };

grobi = callPackage ../tools/X11/grobi { };

gscan2pdf = callPackage ../applications/graphics/gscan2pdf { };
Expand Down