Merge pull request #29549 from volth/timescaledb-0.4.2
timescaledb: init at 0.5.0
This commit is contained in:
commit
28afacbe98
36
pkgs/servers/sql/postgresql/timescaledb/default.nix
Normal file
36
pkgs/servers/sql/postgresql/timescaledb/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchFromGitHub, postgresql }:
|
||||
|
||||
# # To enable on NixOS:
|
||||
# config.services.postgresql = {
|
||||
# extraPlugins = [ pkgs.timescaledb ];
|
||||
# extraConfig = "shared_preload_libraries = 'timescaledb'";
|
||||
# }
|
||||
|
||||
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 = "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;
|
||||
};
|
||||
}
|
@ -16585,6 +16585,8 @@ with pkgs;
|
||||
|
||||
timbreid = callPackage ../applications/audio/pd-plugins/timbreid { };
|
||||
|
||||
timescaledb = callPackage ../servers/sql/postgresql/timescaledb {};
|
||||
|
||||
timewarrior = callPackage ../applications/misc/timewarrior { };
|
||||
|
||||
timidity = callPackage ../tools/misc/timidity { };
|
||||
|
Loading…
Reference in New Issue
Block a user