nixpkgs-suyu/pkgs/tools/misc/opentsdb/default.nix
R. RyanTM f855beb988 opentsdb: 2.3.0 -> 2.3.1 (#41273)
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
2018-05-31 08:46:06 +02:00

36 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 ];
};
}