8cbe6b9ce4
This is a backwards compatible change; it mostly puts all the extensions for postgresql in a common directory to keep them isolated. It also moves a few things that /were not/ extensions out into other parts of the filesystem namespace; namely the postgresql_jdbc and psqlodbc libraries were moved under development/java-modules and development/libraries, respectively. Because these libraries use the libpq postgresql client drivers, they're less sensitive to underlying version changes anyway (since the protocol is relatively stable). No attributes were renamed or harmed in the creation of this patch. Signed-off-by: Austin Seipp <aseipp@pobox.com>
30 lines
844 B
Nix
30 lines
844 B
Nix
{ stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pgjwt-${version}";
|
|
version = "unstable-2017-04-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "michelp";
|
|
repo = "pgjwt";
|
|
rev = "546a2911027b716586e241be7fd4c6f1785237cd";
|
|
sha256 = "1riz0xvwb6y02j0fljbr9hcbqb2jqs4njlivmavy9ysbcrrv1vrf";
|
|
};
|
|
|
|
buildPhase = ":";
|
|
installPhase = ''
|
|
mkdir -p $out/bin # current postgresql extension mechanism in nixos requires bin directory
|
|
mkdir -p $out/share/extension
|
|
cp pg*sql *.control $out/share/extension
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "PostgreSQL implementation of JSON Web Tokens";
|
|
longDescription = ''
|
|
sign() and verify() functions to create and verify JSON Web Tokens.
|
|
'';
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [spinus];
|
|
};
|
|
}
|