2017-02-26 11:14:32 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pgjwt-${version}";
|
2017-09-29 16:15:59 +02:00
|
|
|
version = "unstable-2017-04-24";
|
2017-02-26 11:14:32 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michelp";
|
|
|
|
repo = "pgjwt";
|
2017-09-29 16:15:59 +02:00
|
|
|
rev = "546a2911027b716586e241be7fd4c6f1785237cd";
|
|
|
|
sha256 = "1riz0xvwb6y02j0fljbr9hcbqb2jqs4njlivmavy9ysbcrrv1vrf";
|
2017-02-26 11:14:32 +01:00
|
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
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];
|
|
|
|
};
|
|
|
|
}
|