Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 883148ef2657
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 239920d7458d
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jun 25, 2017

  1. plv8: init at 2.0.3

    Volth committed Jun 25, 2017

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    60e19e7 View commit details
  2. Merge pull request #26831 from volth/plv8-init-2.0.3

    plv8: init at 2.0.3
    Mic92 authored Jun 25, 2017
    Copy the full SHA
    239920d View commit details
Showing with 36 additions and 0 deletions.
  1. +34 −0 pkgs/servers/sql/postgresql/plv8/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
34 changes: 34 additions & 0 deletions pkgs/servers/sql/postgresql/plv8/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, v8, perl, postgresql }:

stdenv.mkDerivation rec {
name = "plv8-${version}";
version = "2.0.3";

nativeBuildInputs = [ perl ];
buildInputs = [ v8 postgresql ];

src = fetchFromGitHub {
owner = "plv8";
repo = "plv8";
rev = "v${version}";
sha256 = "0cn7ynckmdb08dkzjilvc55xz61d1jiya7yrnphizw404j84y3qc";
};

preConfigure = ''
substituteInPlace Makefile --replace '-lv8_libplatform' '-lv8_libplatform -lv8_libbase'
'';

installPhase = ''
mkdir -p $out/bin
install -D plv8.so -t $out/lib
install -D {plls,plcoffee,plv8}{--${version}.sql,.control} -t $out/share/extension
'';

meta = with stdenv.lib; {
description = "PL/v8 - A Procedural Language in JavaScript powered by V8";
homepage = https://pgxn.org/dist/plv8/;
maintainers = with maintainers; [ volth ];
platforms = platforms.linux;
license = licenses.postgresql;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -9589,6 +9589,8 @@ with pkgs;

pgroonga = callPackage ../servers/sql/postgresql/pgroonga {};

plv8 = callPackage ../servers/sql/postgresql/plv8 {};

phonon = callPackage ../development/libraries/phonon {};

phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix {};