diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c77f293ae7e7..d38a2285c381 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7109,6 +7109,12 @@ github = "j4m3s-s"; githubId = 9413812; }; + jacfal = { + name = "Jakub Pravda"; + email = "me@jakubpravda.net"; + github = "jakub-pravda"; + githubId = 16310411; + }; jacg = { name = "Jacek Generowicz"; email = "jacg@my-post-office.net"; diff --git a/pkgs/servers/nosql/questdb/default.nix b/pkgs/servers/nosql/questdb/default.nix new file mode 100644 index 000000000000..a250f3c560f6 --- /dev/null +++ b/pkgs/servers/nosql/questdb/default.nix @@ -0,0 +1,37 @@ +{ fetchurl, jdk17_headless, lib, makeWrapper, stdenv }: + +let + jre = jdk17_headless; +in +stdenv.mkDerivation rec { + pname = "questdb"; + version = "7.1.3"; + + src = fetchurl { + url = "https://github.com/questdb/questdb/releases/download/${version}/questdb-${version}-no-jre-bin.tar.gz"; + sha256 = "lB3h8HRQaQwdTtxxjHNfYrDXY3UULSSrM74OCGgLoMc="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin $out/share/java + cp questdb.sh $out/bin + cp questdb.jar $out/share/java + + ln -s $out/share/java/questdb.jar $out/bin + wrapProgram $out/bin/questdb.sh --set JAVA_HOME "${jre}" + + runHook postInstall + ''; + + meta = with lib; { + description = "high-performance, open-source SQL database for applications in financial services, IoT, machine learning, DevOps and observability"; + homepage = "https://questdb.io/"; + license = licenses.asl20; + maintainers = [ maintainers.jacfal ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b367984fe4b8..0554f3193544 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26361,6 +26361,8 @@ with pkgs; qremotecontrol-server = libsForQt5.callPackage ../servers/misc/qremotecontrol-server { }; + questdb = callPackage ../servers/nosql/questdb { }; + rabbitmq-server = callPackage ../servers/amqp/rabbitmq-server { inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa; elixir = elixir_1_14;