2024-09-19 14:19:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, unstableGitUpdater, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "pgjwt";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0-unstable-2023-03-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michelp";
|
|
|
|
repo = "pgjwt";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "f3d82fd30151e754e19ce5d6a06c71c20689ce3d";
|
|
|
|
sha256 = "sha256-nDZEDf5+sFc1HDcG2eBNQj+kGcdAYRXJseKi9oww+JU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
dontBuild = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/postgresql/extension
|
|
|
|
cp pg*sql *.control $out/share/postgresql/extension
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) pgjwt; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "PostgreSQL implementation of JSON Web Tokens";
|
|
|
|
longDescription = ''
|
|
|
|
sign() and verify() functions to create and verify JSON Web Tokens.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
maintainers = with maintainers; [spinus];
|
|
|
|
};
|
|
|
|
}
|