at 18.09-beta 819 B view raw
1{ stdenv, fetchFromGitHub }: 2stdenv.mkDerivation rec { 3 name = "pgjwt-${version}"; 4 version = "unstable-2017-04-24"; 5 src = fetchFromGitHub { 6 owner = "michelp"; 7 repo = "pgjwt"; 8 rev = "546a2911027b716586e241be7fd4c6f1785237cd"; 9 sha256 = "1riz0xvwb6y02j0fljbr9hcbqb2jqs4njlivmavy9ysbcrrv1vrf"; 10 }; 11 dontBuild = true; 12 installPhase = '' 13 mkdir -p $out/bin # current postgresql extension mechanism in nixos requires bin directory 14 mkdir -p $out/share/extension 15 cp pg*sql *.control $out/share/extension 16 ''; 17 meta = with stdenv.lib; { 18 description = "PostgreSQL implementation of JSON Web Tokens"; 19 longDescription = '' 20 sign() and verify() functions to create and verify JSON Web Tokens. 21 ''; 22 license = licenses.mit; 23 maintainers = with maintainers; [spinus]; 24 }; 25}