Skip to content

Commit

Permalink
Merge pull request #91155 from qoelet/plr-init-8.4
Browse files Browse the repository at this point in the history
plr: init at 8.4.1
  • Loading branch information
SuperSandro2000 authored Feb 3, 2021
2 parents cdf2274 + 87f04c6 commit 4760649
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/servers/sql/postgresql/ext/plr.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, R, postgresql }:

stdenv.mkDerivation rec {
pname = "plr";
version = "8.4.1";

src = fetchFromGitHub {
owner = "postgres-plr";
repo = "plr";
rev = "REL${builtins.replaceStrings ["."] ["_"] version}";
sha256 = "1wy4blg8jl30kzhrkvbncl4gmy6k71zipnq89ykwi1vmx89v3ab7";
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ R postgresql ];
preBuild = ''
export USE_PGXS=1
'';
installPhase = ''
install -D plr.so -t $out/lib/
install -D {plr--unpackaged--8.4.1.sql,plr--8.4.1.sql,plr.control} -t $out/share/postgresql/extension
'';

meta = with lib; {
description = "PL/R - R Procedural Language for PostgreSQL";
homepage = "https://github.com/postgres-plr/plr";
maintainers = with maintainers; [ qoelet ];
platforms = [ "x86_64-linux" ];
license = licenses.gpl2Only;
};
}
2 changes: 2 additions & 0 deletions pkgs/servers/sql/postgresql/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ self: super: {

plpgsql_check = super.callPackage ./ext/plpgsql_check.nix { };

plr = super.callPackage ./ext/plr.nix { };

plv8 = super.callPackage ./ext/plv8.nix {
v8 = super.callPackage ../../../development/libraries/v8/plv8_6_x.nix {
python = self.python2;
Expand Down

0 comments on commit 4760649

Please sign in to comment.