opentsdb: New package and NixOS module

This commit is contained in:
Oliver Charles
2014-11-24 14:40:47 +00:00
parent 8964667bcd
commit 764cca613d
5 changed files with 115 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{ stdenv, fetchurl, curl, jdk, jre, makeWrapper, nettools, python }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "opentsdb-2.0.1";
src = fetchurl {
url = https://github.com/OpenTSDB/opentsdb/releases/download/v2.0.1/opentsdb-2.0.1.tar.gz;
sha256 = "1q2gkl72yjzd8yrggl0018m9s8mc9zwnz3d8ias54vqh3irypc2c";
};
buildPhase = "find .";
buildInputs = [ curl jdk makeWrapper nettools python ];
installPhase = ''
make install
wrapProgram $out/bin/tsdb \
--set JAVA_HOME "${jre}" \
--set JAVA "${jre}/bin/java"
'';
}