3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #234069 from jakub-pravda/questdb-package

This commit is contained in:
Sandro 2023-06-16 10:59:03 +02:00 committed by GitHub
commit 42b97cadd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View file

@ -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";

View file

@ -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;
};
}

View file

@ -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;