2017-06-24 05:05:20 +02:00
|
|
|
{ stdenv, fetchFromGitHub, v8, perl, postgresql }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-31 04:00:00 +02:00
|
|
|
pname = "plv8";
|
2019-08-28 05:57:05 +02:00
|
|
|
version = "2.3.13";
|
2017-06-24 05:05:20 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
buildInputs = [ v8 postgresql ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plv8";
|
|
|
|
repo = "plv8";
|
|
|
|
rev = "v${version}";
|
2019-08-28 05:57:05 +02:00
|
|
|
sha256 = "12xpcc1ylzyy75wi1m4vijknzv2gxab05w9z90jb03faq18cnlql";
|
2017-06-24 05:05:20 +02:00
|
|
|
};
|
|
|
|
|
2019-07-02 11:20:00 +02:00
|
|
|
makefile = "Makefile.shared";
|
|
|
|
|
|
|
|
buildFlags = [ "all" ];
|
2018-11-04 15:21:07 +01:00
|
|
|
|
2017-06-24 05:05:20 +02:00
|
|
|
preConfigure = ''
|
2018-11-04 15:21:07 +01:00
|
|
|
patchShebangs ./generate_upgrade.sh
|
2017-06-24 05:05:20 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-11-04 15:21:07 +01:00
|
|
|
install -D plv8*.so -t $out/lib
|
2019-07-01 16:18:03 +02:00
|
|
|
install -D {plls,plcoffee,plv8}{--${version}.sql,.control} -t $out/share/postgresql/extension
|
2017-06-24 05:05:20 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-07-02 11:20:00 +02:00
|
|
|
description = "V8 Engine Javascript Procedural Language add-on for PostgreSQL";
|
|
|
|
homepage = "https://plv8.github.io/";
|
2017-06-24 05:05:20 +02:00
|
|
|
maintainers = with maintainers; [ volth ];
|
2019-08-29 10:00:00 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2017-06-24 05:05:20 +02:00
|
|
|
license = licenses.postgresql;
|
|
|
|
};
|
|
|
|
}
|