postgresqlPackages.pipelinedb: fix darwin build
This commit is contained in:
parent
4e82cf911c
commit
3b86c99835
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl }:
|
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl, libsodium, libkrb5 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pipelinedb";
|
pname = "pipelinedb";
|
||||||
@ -11,10 +11,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1mnqpvx6g1r2n4kjrrx01vbdx7kvndfsbmm7zbzizjnjlyixz75f";
|
sha256 = "1mnqpvx6g1r2n4kjrrx01vbdx7kvndfsbmm7zbzizjnjlyixz75f";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ postgresql openssl zeromq ];
|
buildInputs = [ postgresql openssl zeromq libsodium libkrb5 ];
|
||||||
|
|
||||||
makeFlags = [ "USE_PGXS=1" ];
|
makeFlags = [ "USE_PGXS=1" ];
|
||||||
|
|
||||||
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lsodium";
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace "/usr/lib/libzmq.a" "${zeromq}/lib/libzmq.a"
|
--replace "/usr/lib/libzmq.a" "${zeromq}/lib/libzmq.a"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user