2017-09-18 23:42:16 +00:00
|
|
|
{ stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "timescaledb-${version}";
|
2017-09-24 15:39:55 +00:00
|
|
|
version = "0.5.0";
|
2017-09-18 23:42:16 +00:00
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "timescale";
|
|
|
|
repo = "timescaledb";
|
|
|
|
rev = version;
|
2017-09-24 15:39:55 +00:00
|
|
|
sha256 = "01swgjw563c42azxsg55ry7cyiipxkcvfrxmw71jil5dxl3s0fkz";
|
2017-09-18 23:42:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2017-09-24 15:56:22 +00:00
|
|
|
install -D timescaledb.so -t $out/lib
|
|
|
|
install -D timescaledb.control -t $out/share/extension
|
|
|
|
cp -dpR sql/* $out/share/extension/
|
2017-09-18 23:42:16 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|