Skip to content

Commit

Permalink
Merge pull request #123336 from kalekseev/fix/pipelinedb
Browse files Browse the repository at this point in the history
postgresqlPackages.pipelinedb: fix darwin build
  • Loading branch information
risicle committed May 17, 2021
2 parents a8c3743 + 3b86c99 commit 673aea9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/servers/sql/postgresql/ext/pipelinedb.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl }:
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl, libsodium, libkrb5 }:

stdenv.mkDerivation rec {
pname = "pipelinedb";
Expand All @@ -11,10 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "1mnqpvx6g1r2n4kjrrx01vbdx7kvndfsbmm7zbzizjnjlyixz75f";
};

buildInputs = [ postgresql openssl zeromq ];
buildInputs = [ postgresql openssl zeromq libsodium libkrb5 ];

makeFlags = [ "USE_PGXS=1" ];

NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lsodium";

preConfigure = ''
substituteInPlace Makefile \
--replace "/usr/lib/libzmq.a" "${zeromq}/lib/libzmq.a"
Expand Down

0 comments on commit 673aea9

Please sign in to comment.