Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 40 lines 1.5 kB view raw
1{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack, groonga }: 2 3stdenv.mkDerivation rec { 4 pname = "pgroonga"; 5 version = "3.0.1"; 6 7 src = fetchurl { 8 url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-lsUtM6AM/AVjDGP9vSzj7Vxx+3+IS4cr7ctmU4C6Ml8="; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ postgresql msgpack groonga ]; 14 15 makeFlags = [ "HAVE_MSGPACK=1" ]; 16 17 installPhase = '' 18 install -D pgroonga.so -t $out/lib/ 19 install -D pgroonga.control -t $out/share/postgresql/extension 20 install -D data/pgroonga-*.sql -t $out/share/postgresql/extension 21 22 install -D pgroonga_database.so -t $out/lib/ 23 install -D pgroonga_database.control -t $out/share/postgresql/extension 24 install -D data/pgroonga_database-*.sql -t $out/share/postgresql/extension 25 ''; 26 27 meta = with lib; { 28 description = "A PostgreSQL extension to use Groonga as the index"; 29 longDescription = '' 30 PGroonga is a PostgreSQL extension to use Groonga as the index. 31 PostgreSQL supports full text search against languages that use only alphabet and digit. 32 It means that PostgreSQL doesn't support full text search against Japanese, Chinese and so on. 33 You can use super fast full text search feature against all languages by installing PGroonga into your PostgreSQL. 34 ''; 35 homepage = "https://pgroonga.github.io/"; 36 license = licenses.postgresql; 37 platforms = postgresql.meta.platforms; 38 maintainers = with maintainers; [ DerTim1 ]; 39 }; 40}