diff options
author | Tomasz Czyż <tomasz.czyz@gmail.com> | 2017-02-26 10:14:32 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-26 11:14:32 +0100 |
commit | 0b27c74eb2517d307b1c1bbd04567157fba7cb63 (patch) | |
tree | 2a98a44dd08b5e1f340ffb99bea61e8595336789 /pkgs/servers | |
parent | 488ece816949bbb92462071255c1c56cdbd74ae2 (diff) |
pgjwt: init at 0.0.1 (#22644)
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/sql/postgresql/pgjwt/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/servers/sql/postgresql/pgjwt/default.nix b/pkgs/servers/sql/postgresql/pgjwt/default.nix new file mode 100644 index 000000000000..b4955f8184c2 --- /dev/null +++ b/pkgs/servers/sql/postgresql/pgjwt/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + name = "pgjwt-${version}"; + version = "0.0.1"; + src = fetchFromGitHub { + owner = "michelp"; + repo = "pgjwt"; + rev = "12a41eef15e6d3a22399e03178560d5174d496a3"; + sha256 = "1dgx7kqkf9d7j5qj3xykx238xm8jg0s6c8h7zyl4lx8dmbz9sgsv"; + }; + dontBuild = true; + installPhase = '' + mkdir -p $out/bin # current postgresql extension mechanism in nixos requires bin directory + mkdir -p $out/share/extension + cp pg*sql *.control $out/share/extension + ''; + meta = with stdenv.lib; { + description = "PostgreSQL implementation of JSON Web Tokens"; + longDescription = '' + sign() and verify() functions to create and verify JSON Web Tokens. + ''; + license = licenses.mit; + maintainers = with maintainers; [spinus]; + }; +} |