nixpkgs/pkgs/servers/sql/postgresql/ext/pgjwt.nix
Bas van Dijk 517c52ec2e
postgresql: always create the $out/bin directory
This is needed because some PostgreSQL plugins don't have a bin
directory. If only these plugins are listed in cfg.extraPlugins buildEnv
will turn $out/bin into a symbolic link to ${pg}/bin. Lateron we try to
rm $out/bin/{pg_config,postgres,pg_ctl} which will then fail because
$out/bin will be read-only.
2019-05-04 14:11:52 -05:00

29 lines
748 B
Nix

{ stdenv, fetchFromGitHub, postgresql }:
stdenv.mkDerivation rec {
name = "pgjwt-${version}";
version = "unstable-2017-04-24";
src = fetchFromGitHub {
owner = "michelp";
repo = "pgjwt";
rev = "546a2911027b716586e241be7fd4c6f1785237cd";
sha256 = "1riz0xvwb6y02j0fljbr9hcbqb2jqs4njlivmavy9ysbcrrv1vrf";
};
buildPhase = ":";
installPhase = ''
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];
};
}