blob: 5810ae868918f7696da7870123c4e19af98a21d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ stdenv, fetchFromGitHub, postgresql }:
stdenv.mkDerivation rec {
name = "timescaledb-${version}";
version = "0.5.0";
buildInputs = [ postgresql ];
src = fetchFromGitHub {
owner = "timescale";
repo = "timescaledb";
rev = version;
sha256 = "01swgjw563c42azxsg55ry7cyiipxkcvfrxmw71jil5dxl3s0fkz";
};
installPhase = ''
mkdir -p $out/bin
install -D timescaledb.so -t $out/lib
install -D timescaledb.control -t $out/share/extension
cp -dpR sql/* $out/share/extension/
'';
meta = with stdenv.lib; {
description = "TimescaleDB scales PostgreSQL for time-series data via automatic partitioning across time and space";
homepage = https://www.timescale.com/;
maintainers = with maintainers; [ volth ];
platforms = platforms.linux;
license = licenses.postgresql;
};
}
|