diff --git a/pkgs/servers/nosql/influxdb/default.nix b/pkgs/servers/nosql/influxdb/default.nix new file mode 100644 index 000000000000..fa9c48c6ea92 --- /dev/null +++ b/pkgs/servers/nosql/influxdb/default.nix @@ -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"]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 70cab717c169..b2dad91bdbf5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 */