From 716849c97ee95164c0f99fee64478d98a64a89df Mon Sep 17 00:00:00 2001 From: Volth Date: Mon, 18 Sep 2017 23:42:16 +0000 Subject: [PATCH] timescaledb: init at 0.4.2 --- .../sql/postgresql/timescaledb/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/servers/sql/postgresql/timescaledb/default.nix diff --git a/pkgs/servers/sql/postgresql/timescaledb/default.nix b/pkgs/servers/sql/postgresql/timescaledb/default.nix new file mode 100644 index 000000000000..e68d06dcf1f7 --- /dev/null +++ b/pkgs/servers/sql/postgresql/timescaledb/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, postgresql }: + +stdenv.mkDerivation rec { + name = "timescaledb-${version}"; + version = "0.4.2"; + + buildInputs = [ postgresql ]; + + src = fetchFromGitHub { + owner = "timescale"; + repo = "timescaledb"; + rev = version; + sha256 = "0rwcd7wg3kv343b02330nlpqfm6jj5g0d2pkr1pc78cq8prhxx39"; + }; + + installPhase = '' + mkdir -p $out/bin + install -D timescaledb.so -t $out/lib + install -D timescaledb.control -t $out/share/extension + install -D sql/timescaledb--${version}.sql -t $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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b8262eb8dbd8..0687cd138b14 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16492,6 +16492,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 { };