ephemeralpg: add getopt to wrapped path

fixes script on darwin
This commit is contained in:
Yorick van Pelt 2019-01-15 18:07:15 +01:00
parent 89f5fbbdd2
commit 915a21762b
No known key found for this signature in database
GPG Key ID: D8D3CC6D951384DE

@ -1,4 +1,4 @@
{ stdenv, fetchurl, postgresql, makeWrapper }:
{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
stdenv.mkDerivation rec {
name = "ephemeralpg-${version}";
version = "2.5";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out
PREFIX=$out make install
wrapProgram $out/bin/pg_tmp --prefix PATH : ${postgresql}/bin
wrapProgram $out/bin/pg_tmp --prefix PATH : ${stdenv.lib.makeBinPath [ postgresql getopt ]}
'';
meta = {
description = ''Run tests on an isolated, temporary PostgreSQL database.'';