2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, autoconf, automake, curl, fetchurl, jdk8, makeWrapper, nettools
|
2020-04-24 23:36:52 +00:00
|
|
|
, python, git
|
|
|
|
}:
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
let jdk = jdk8; jre = jdk8.jre; in
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opentsdb";
|
|
|
|
version = "2.4.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/OpenTSDB/opentsdb/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0b0hilqmgz6n1q7irp17h48v8fjpxhjapgw1py8kyav1d51s7mm2";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ autoconf automake curl jdk nettools python git ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./build-aux/
|
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/tsdb \
|
|
|
|
--set JAVA_HOME "${jre}" \
|
|
|
|
--set JAVA "${jre}/bin/java"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Time series database with millisecond precision";
|
|
|
|
homepage = "http://opentsdb.net";
|
|
|
|
license = licenses.lgpl21Plus;
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-12-09 12:39:15 +00:00
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"CVE-2020-35476" # https://github.com/OpenTSDB/opentsdb/issues/2051
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|