Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 29 lines 793 B view raw
1{ lib, stdenv, fetchFromGitHub, postgresql }: 2 3stdenv.mkDerivation { 4 pname = "pgjwt"; 5 version = "unstable-2021-11-13"; 6 7 src = fetchFromGitHub { 8 owner = "michelp"; 9 repo = "pgjwt"; 10 rev = "9742dab1b2f297ad3811120db7b21451bca2d3c9"; 11 sha256 = "sha256-Hw3R9bMGDmh+dMzjmqZSy/rT4mX8cPU969OJiARFg10="; 12 }; 13 14 dontBuild = true; 15 installPhase = '' 16 mkdir -p $out/share/postgresql/extension 17 cp pg*sql *.control $out/share/postgresql/extension 18 ''; 19 20 meta = with lib; { 21 description = "PostgreSQL implementation of JSON Web Tokens"; 22 longDescription = '' 23 sign() and verify() functions to create and verify JSON Web Tokens. 24 ''; 25 license = licenses.mit; 26 platforms = postgresql.meta.platforms; 27 maintainers = with maintainers; [spinus]; 28 }; 29}