2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
2018-08-06 15:17:54 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pgjwt";
|
2022-10-14 04:20:00 +00:00
|
|
|
version = "unstable-2021-11-13";
|
2018-08-06 15:17:54 +00:00
|
|
|
|
2017-02-26 10:14:32 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-08-06 15:17:54 +00:00
|
|
|
owner = "michelp";
|
|
|
|
repo = "pgjwt";
|
2022-10-14 04:20:00 +00:00
|
|
|
rev = "9742dab1b2f297ad3811120db7b21451bca2d3c9";
|
|
|
|
sha256 = "sha256-Hw3R9bMGDmh+dMzjmqZSy/rT4mX8cPU969OJiARFg10=";
|
2017-02-26 10:14:32 +00:00
|
|
|
};
|
2018-08-06 15:17:54 +00:00
|
|
|
|
2021-07-18 21:42:48 +00:00
|
|
|
dontBuild = true;
|
2017-02-26 10:14:32 +00:00
|
|
|
installPhase = ''
|
2019-07-01 14:18:03 +00: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 15:17:54 +00: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 09:24:00 +00:00
|
|
|
platforms = postgresql.meta.platforms;
|
2017-02-26 10:14:32 +00:00
|
|
|
maintainers = with maintainers; [spinus];
|
|
|
|
};
|
|
|
|
}
|