nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 1.1 kB view raw
1{ 2 fetchurl, 3 jdk17_headless, 4 lib, 5 makeBinaryWrapper, 6 stdenv, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "questdb"; 11 version = "8.3.3"; 12 13 src = fetchurl { 14 url = "https://github.com/questdb/questdb/releases/download/${finalAttrs.version}/questdb-${finalAttrs.version}-no-jre-bin.tar.gz"; 15 hash = "sha256-C3lhEgg9erAYSV4qU+xqPM1YbqCIj7mqmVzu+6BY+pI="; 16 }; 17 18 nativeBuildInputs = [ 19 makeBinaryWrapper 20 ]; 21 22 installPhase = '' 23 runHook preInstall 24 25 mkdir -p $out/bin $out/share/java 26 cp questdb.sh $out/bin 27 cp questdb.jar $out/share/java 28 29 ln -s $out/share/java/questdb.jar $out/bin 30 wrapProgram $out/bin/questdb.sh --set JAVA_HOME "${jdk17_headless}" 31 32 runHook postInstall 33 ''; 34 35 meta = { 36 description = "High-performance, open-source SQL database for applications in financial services, IoT, machine learning, DevOps and observability"; 37 homepage = "https://questdb.io/"; 38 sourceProvenance = [ lib.sourceTypes.binaryBytecode ]; 39 license = lib.licenses.asl20; 40 maintainers = [ lib.maintainers.jacfal ]; 41 platforms = lib.platforms.linux; 42 }; 43})