mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
f24c729196
plv8 uses a custom version v8 version, which is reported to only build on x86_64-linux. The next major version plv8 should drop the custom v8.
38 lines
958 B
Nix
38 lines
958 B
Nix
{ stdenv, fetchFromGitHub, v8, perl, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "plv8";
|
|
version = "2.3.13";
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
buildInputs = [ v8 postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plv8";
|
|
repo = "plv8";
|
|
rev = "v${version}";
|
|
sha256 = "12xpcc1ylzyy75wi1m4vijknzv2gxab05w9z90jb03faq18cnlql";
|
|
};
|
|
|
|
makefile = "Makefile.shared";
|
|
|
|
buildFlags = [ "all" ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./generate_upgrade.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -D plv8*.so -t $out/lib
|
|
install -D {plls,plcoffee,plv8}{--${version}.sql,.control} -t $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "V8 Engine Javascript Procedural Language add-on for PostgreSQL";
|
|
homepage = "https://plv8.github.io/";
|
|
maintainers = with maintainers; [ volth ];
|
|
platforms = [ "x86_64-linux" ];
|
|
license = licenses.postgresql;
|
|
};
|
|
}
|