1{ lib, stdenv, fetchFromGitHub, postgresql }:
2
3stdenv.mkDerivation rec {
4 pname = "rum";
5 version = "1.3.13";
6
7 src = fetchFromGitHub {
8 owner = "postgrespro";
9 repo = "rum";
10 rev = version;
11 hash = "sha256-yy2xeDnk3fENN+En0st4mv60nZlqPafIzwf68jwJ5fE=";
12 };
13
14 buildInputs = [ postgresql ];
15
16 makeFlags = [ "USE_PGXS=1" ];
17
18 installPhase = ''
19 install -D -t $out/lib *${postgresql.dlSuffix}
20 install -D -t $out/share/postgresql/extension *.control
21 install -D -t $out/share/postgresql/extension *.sql
22 '';
23
24 meta = with lib; {
25 description = "Full text search index method for PostgreSQL";
26 homepage = "https://github.com/postgrespro/rum";
27 license = licenses.postgresql;
28 platforms = postgresql.meta.platforms;
29 maintainers = with maintainers; [ DeeUnderscore ];
30 };
31}