Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ stdenv, fetchurl, pkgconfig, postgresql, libmsgpack, groonga }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "pgroonga-${version}"; | ||
version = "1.1.9"; | ||
|
||
src = fetchurl { | ||
url = "http://packages.groonga.org/source/pgroonga/${name}.tar.gz"; | ||
sha256 = "07afgwll8nxfb7ziw3qrvw0ryjjw3994vj2f6alrjwpg7ynb46ag"; | ||
}; | ||
|
||
buildInputs = [ postgresql pkgconfig libmsgpack groonga ]; | ||
|
||
makeFlags = [ "HAVE_MSGPACK=1" ]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
install -D pgroonga.so -t $out/lib/ | ||
install -D ./{pgroonga-*.sql,pgroonga.control} -t $out/share/extension | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A PostgreSQL extension to use Groonga as the index"; | ||
longDescription = "PGroonga is a PostgreSQL extension to use Groonga as the index. PostgreSQL supports full text search against languages that use only alphabet and digit. It means that PostgreSQL doesn't support full text search against Japanese, Chinese and so on. You can use super fast full text search feature against all languages by installing PGroonga into your PostgreSQL."; | ||
homepage = https://pgroonga.github.io/; | ||
license = licenses.postgresql; | ||
maintainers = with maintainers; [ DerTim1 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters