git.iko.soy/typeable/nixpkgs
on master help sign in
postgresqlPackages.pipelinedb: init at 1.0.0-13
commitd4d710c1ab00461c132d87c37b5754d975fb0c53 authorMario Rodas <marsam@users.noreply.github.com> dateWed 27 Mar 2019, 08:40 (8 years ago) parent6cc43ad
2 files changed+41
pkgs/servers/sql/postgresql/ext/pipelinedb.nix+39 pkgs/servers/sql/postgresql/packages.nix+2
pkgs/servers/sql/postgresql/ext/pipelinedb.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchFromGitHub, postgresql, zeromq, openssl }:
2+
3+if stdenv.lib.versionOlder postgresql.version "10"
4+then throw "PipelineDB not supported for PostgreSQL ${postgresql.version}"
5+else
6+stdenv.mkDerivation rec {
7+ pname = "pipelinedb";
8+ version = "1.0.0-13";
9+
10+ src = fetchFromGitHub {
11+ owner = "pipelinedb";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "1mnqpvx6g1r2n4kjrrx01vbdx7kvndfsbmm7zbzizjnjlyixz75f";
15+ };
16+
17+ buildInputs = [ postgresql openssl zeromq ];
18+
19+ makeFlags = [ "USE_PGXS=1" ];
20+
21+ preConfigure = ''
22+ substituteInPlace Makefile \
23+ --replace "/usr/lib/libzmq.a" "${zeromq}/lib/libzmq.a"
24+ '';
25+
26+ installPhase = ''
27+ mkdir -p $out/bin
28+ install -D -t $out/lib/ pipelinedb.so
29+ install -D -t $out/share/extension {pipelinedb-*.sql,pipelinedb.control}
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ description = "High-performance time-series aggregation for PostgreSQL";
34+ homepage = https://www.pipelinedb.com/;
35+ license = licenses.asl20;
36+ platforms = postgresql.meta.platforms;
37+ maintainers = [ maintainers.marsam ];
38+ };
39+}
pkgs/servers/sql/postgresql/packages.nix+2
@@ -31,6 +31,8 @@ self: super: {
3131
3232 pgtap = super.callPackage ./ext/pgtap.nix { };
3333
34+ pipelinedb = super.callPackage ./ext/pipelinedb.nix { };
35+
3436 timescaledb = super.callPackage ./ext/timescaledb.nix { };
3537
3638 tsearch_extras = super.callPackage ./ext/tsearch_extras.nix { };