nixpkgs: tidy up pgjwt package

This makes pgjwt take a dummy 'postgresql' argument, which it does not *need*
in the buildInputs (it is purely a SQL extension with no C code). However, this
argument will be necessary for an upcoming change that will parameterize the
extensions over a particular PostgreSQL version.

It also does some tiny cleanup, setting a null build phase.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2018-08-06 10:17:54 -05:00
parent 2266f2014b
commit 648f4a2769

View file

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