mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
f855beb988
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/opentsdb/versions. These checks were done: - built on NixOS - /nix/store/bzg1dfd5xpc3rqgi601a162vajil47r0-opentsdb-2.3.1/bin/tsdb passed the binary check. - Warning: no invocation of /nix/store/bzg1dfd5xpc3rqgi601a162vajil47r0-opentsdb-2.3.1/bin/.tsdb-wrapped had a zero exit code or showed the expected version - 1 of 2 passed binary check by having a zero exit code. - 0 of 2 passed binary check by having the new version present in output. - found 2.3.1 with grep in /nix/store/bzg1dfd5xpc3rqgi601a162vajil47r0-opentsdb-2.3.1 - directory tree listing: https://gist.github.com/b48d02ce7d61ccc9a1066feef216ebeb - du listing: https://gist.github.com/fa09ba05d6c0f628805a900c2624ac13
37 lines
927 B
Nix
37 lines
927 B
Nix
{ stdenv, autoconf, automake, curl, fetchurl, jdk, jre, makeWrapper, nettools
|
|
, python, git
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opentsdb-${version}";
|
|
version = "2.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/OpenTSDB/opentsdb/releases/download/v${version}/${name}.tar.gz";
|
|
sha256 = "1lf1gynr11silla4bsrkwqv023dxirsb88ncs2qmc2ng35593fjd";
|
|
};
|
|
|
|
buildInputs = [ autoconf automake curl jdk makeWrapper nettools python git ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./build-aux/
|
|
./bootstrap
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/tsdb \
|
|
--set JAVA_HOME "${jre}" \
|
|
--set JAVA "${jre}/bin/java"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Time series database with millisecond precision";
|
|
homepage = http://opentsdb.net;
|
|
license = licenses.lgpl21Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ maintainers.ocharles ];
|
|
};
|
|
}
|