2023-08-10 07:59:29 +00:00
|
|
|
{
|
|
|
|
fetchurl,
|
|
|
|
jdk17_headless,
|
|
|
|
lib,
|
|
|
|
makeBinaryWrapper,
|
|
|
|
stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "questdb";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "8.0.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-10 07:59:29 +00:00
|
|
|
url = "https://github.com/questdb/questdb/releases/download/${finalAttrs.version}/questdb-${finalAttrs.version}-no-jre-bin.tar.gz";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-cvfacdMPb/w/muaKXm6SQMAJLSjxP+D9/YmpgsYAYEw=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeBinaryWrapper
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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
|
2023-08-10 07:59:29 +00:00
|
|
|
wrapProgram $out/bin/questdb.sh --set JAVA_HOME "${jdk17_headless}"
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "high-performance, open-source SQL database for applications in financial services, IoT, machine learning, DevOps and observability";
|
|
|
|
homepage = "https://questdb.io/";
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
|
2023-08-10 07:59:29 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.jacfal ];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|