nixpkgs/pkgs/by-name/qu/questdb/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.1 KiB
Nix
Raw Normal View History

2023-08-06 17:40:54 +00:00
{
fetchurl,
jdk17_headless,
lib,
makeBinaryWrapper,
stdenv
}:
stdenv.mkDerivation (finalAttrs: {
2023-06-07 10:22:27 +00:00
pname = "questdb";
2024-10-09 05:46:51 +00:00
version = "8.1.2";
2023-06-07 10:22:27 +00:00
src = fetchurl {
2023-08-06 17:40:54 +00:00
url = "https://github.com/questdb/questdb/releases/download/${finalAttrs.version}/questdb-${finalAttrs.version}-no-jre-bin.tar.gz";
2024-10-09 05:46:51 +00:00
hash = "sha256-oFhr/lBsg3e7vUiNQXwjBTF6GAjBYym4+YBoA/2Lsag=";
2023-06-07 10:22:27 +00:00
};
2023-08-06 17:40:54 +00:00
nativeBuildInputs = [
makeBinaryWrapper
];
2023-06-07 10:22:27 +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-06 17:40:54 +00:00
wrapProgram $out/bin/questdb.sh --set JAVA_HOME "${jdk17_headless}"
2023-06-07 10:22:27 +00:00
runHook postInstall
'';
2023-08-06 17:40:54 +00:00
meta = {
2023-06-07 10:22:27 +00:00
description = "high-performance, open-source SQL database for applications in financial services, IoT, machine learning, DevOps and observability";
homepage = "https://questdb.io/";
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
2023-08-06 17:40:54 +00:00
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jacfal ];
platforms = lib.platforms.linux;
2023-06-07 10:22:27 +00:00
};
2023-08-06 17:40:54 +00:00
})