Merge pull request #123336 from kalekseev/fix/pipelinedb

postgresqlPackages.pipelinedb: fix darwin build
wip/little-gl
Robert Scott 3 years ago committed by GitHub
commit 673aea9f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkgs/servers/sql/postgresql/ext/pipelinedb.nix

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl }:
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl, libsodium, libkrb5 }:
stdenv.mkDerivation rec {
pname = "pipelinedb";
@ -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"

Loading…
Cancel
Save