2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
2018-08-06 16:17:54 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pgjwt";
|
2017-09-29 15:15:59 +01:00
|
|
|
version = "unstable-2017-04-24";
|
2018-08-06 16:17:54 +01:00
|
|
|
|
2017-02-26 10:14:32 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-08-06 16:17:54 +01:00
|
|
|
owner = "michelp";
|
|
|
|
repo = "pgjwt";
|
|
|
|
rev = "546a2911027b716586e241be7fd4c6f1785237cd";
|
2017-09-29 15:15:59 +01:00
|
|
|
sha256 = "1riz0xvwb6y02j0fljbr9hcbqb2jqs4njlivmavy9ysbcrrv1vrf";
|
2017-02-26 10:14:32 +00:00
|
|
|
};
|
2018-08-06 16:17:54 +01:00
|
|
|
|
2021-07-18 22:42:48 +01:00
|
|
|
dontBuild = true;
|
2017-02-26 10:14:32 +00:00
|
|
|
installPhase = ''
|
2019-07-01 15:18:03 +01:00
|
|
|
mkdir -p $out/share/postgresql/extension
|
|
|
|
cp pg*sql *.control $out/share/postgresql/extension
|
2017-02-26 10:14:32 +00:00
|
|
|
'';
|
2018-08-06 16:17:54 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-26 10:14:32 +00:00
|
|
|
description = "PostgreSQL implementation of JSON Web Tokens";
|
|
|
|
longDescription = ''
|
|
|
|
sign() and verify() functions to create and verify JSON Web Tokens.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2019-09-13 10:24:00 +01:00
|
|
|
platforms = postgresql.meta.platforms;
|
2017-02-26 10:14:32 +00:00
|
|
|
maintainers = with maintainers; [spinus];
|
|
|
|
};
|
|
|
|
}
|