mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Add influxdb, scalable datastore for metrics, events, and real-time analytics
This commit is contained in:
parent
cd4063b99b
commit
b9737cb4ab
35
pkgs/servers/nosql/influxdb/default.nix
Normal file
35
pkgs/servers/nosql/influxdb/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv, fetchurl, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "influxdb-${version}";
|
||||
version = "0.7.0";
|
||||
arch = if stdenv.system == "x86_64-linux" then "amd64" else "386";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://s3.amazonaws.com/influxdb/${name}.${arch}.tar.gz";
|
||||
sha256 = if arch == "amd64" then
|
||||
"1mvi21z83abnprzj0n8r64ly9s48i5l7ndcrci7nk96z8xab7w3q" else
|
||||
"1zgxbfnam4r31g9yfwznhb7l4hf7s5sylhll92zr8q0qjhr4cj2b";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
install -D influxdb $out/bin/influxdb
|
||||
patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/bin/influxdb
|
||||
wrapProgram "$out/bin/influxdb" \
|
||||
--prefix LD_LIBRARY_PATH : "${stdenv.gcc.gcc}/lib:${stdenv.gcc.gcc}/lib64"
|
||||
|
||||
ensureDir $out/share/influxdb
|
||||
cp -R admin scripts config.toml $out/share/influxdb
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Scalable datastore for metrics, events, and real-time analytics";
|
||||
homepage = http://influxdb.com/;
|
||||
license = licenses.mit;
|
||||
|
||||
maintainers = [ maintainers.offline ];
|
||||
platforms = ["i686-linux" "x86_64-linux"];
|
||||
};
|
||||
}
|
@ -6663,6 +6663,8 @@ let
|
||||
|
||||
riak = callPackage ../servers/nosql/riak/1.3.1.nix { };
|
||||
|
||||
influxdb = callPackage ../servers/nosql/influxdb { };
|
||||
|
||||
mysql51 = import ../servers/sql/mysql/5.1.x.nix {
|
||||
inherit fetchurl ncurses zlib perl openssl stdenv;
|
||||
ps = procps; /* !!! Linux only */
|
||||
|
Loading…
Reference in New Issue
Block a user