2021-05-17 10:27:18 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, zeromq, openssl, libsodium, libkrb5 }:
|
2019-03-27 14:40:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pipelinedb";
|
|
|
|
version = "1.0.0-13";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pipelinedb";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1mnqpvx6g1r2n4kjrrx01vbdx7kvndfsbmm7zbzizjnjlyixz75f";
|
|
|
|
};
|
|
|
|
|
2021-05-17 10:27:18 +02:00
|
|
|
buildInputs = [ postgresql openssl zeromq libsodium libkrb5 ];
|
2019-03-27 14:40:00 +01:00
|
|
|
|
|
|
|
makeFlags = [ "USE_PGXS=1" ];
|
|
|
|
|
2021-05-17 10:27:18 +02:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lsodium";
|
|
|
|
|
2019-03-27 14:40:00 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "/usr/lib/libzmq.a" "${zeromq}/lib/libzmq.a"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -D -t $out/lib/ pipelinedb.so
|
2019-07-01 16:18:03 +02:00
|
|
|
install -D -t $out/share/postgresql/extension {pipelinedb-*.sql,pipelinedb.control}
|
2019-03-27 14:40:00 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-03-27 14:40:00 +01:00
|
|
|
description = "High-performance time-series aggregation for PostgreSQL";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.pipelinedb.com/";
|
2019-03-27 14:40:00 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
2019-08-15 01:27:29 +02:00
|
|
|
broken = versionOlder postgresql.version "10";
|
2019-03-27 14:40:00 +01:00
|
|
|
};
|
|
|
|
}
|