31 lines
730 B
Nix
31 lines
730 B
Nix
{stdenv, fetchFromGitHub, gradle}: stdenv.mkDerivation rec {
|
|
pname = "elasticsearch";
|
|
version = "5.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elastic";
|
|
repo = pname;
|
|
rev = "v" + version;
|
|
hash = "sha256-clrfLeJwmwfzml6YRJSWvtwVB2+MRUAmvXijllYzrEQ=";
|
|
};
|
|
|
|
#patches = [./mysql.patch];
|
|
|
|
nativeBuildInputs = [gradle];
|
|
#buildInputs = [autoreconfHook ncurses breakpointHook];
|
|
#env = {
|
|
# ACLOCAL_PATH="${libtool}/share/aclocal";
|
|
# NIX_CFLAGS_COMPILE="-fpermissive";
|
|
#};
|
|
|
|
buildPhase = ''
|
|
gradle assemble
|
|
'';
|
|
|
|
#configureFlags = ["--with-plugins=innobase"];
|
|
|
|
#postInstall = ''
|
|
# ln -s $out/libexec/mysqld $out/bin/mysqld
|
|
#'';
|
|
}
|