commit 0da416b7c8de3dfe6c5f49a3b648b4f29e111ec0
parent 9b375f43a15e48cb8bb6658731c626bef2ae9814
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sat, 25 May 2024 14:21:58 +0400
Add qstudio
Diffstat:
2 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -379,6 +379,7 @@ lib.makeScope newScope (
pvs-studio = callPackage ./misc/pvs-studio { };
qasync = callPackage ./misc/qasync { };
qoiview = callPackage ./misc/qoiview { };
+ qstudio = callPackage ./misc/qstudio { };
repolocli = callPackage ./misc/repolocli { };
rhttp = callPackage ./misc/rhttp { };
riffraff = callPackage ./misc/riffraff { };
diff --git a/pkgs/misc/qstudio/default.nix b/pkgs/misc/qstudio/default.nix
@@ -0,0 +1,43 @@
+{
+ lib,
+ stdenv,
+ fetchfromgh,
+ jre,
+ makeWrapper,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "qstudio";
+ version = "2.54";
+
+ src = fetchfromgh {
+ owner = "timeseries";
+ repo = "qstudio";
+ name = "qstudio.jar";
+ hash = "sha256-NN2pkAjlwTbq25AafD06NMoAaOknW5nimya2zi+aMBQ=";
+ version = finalAttrs.version;
+ };
+
+ nativeBuildInputs = [ makeWrapper ];
+
+ buildInputs = [ jre ];
+
+ dontUnpack = true;
+
+ installPhase = ''
+ install -dm755 $out/bin
+ install -Dm644 $src $out/share/java/${finalAttrs.src.name}
+
+ makeWrapper ${jre}/bin/java $out/bin/qstudio \
+ --add-flags "-jar $out/share/java/${finalAttrs.src.name}"
+ '';
+
+ meta = with lib; {
+ description = "SQL Analysis Tool";
+ homepage = "https://www.timestored.com/qstudio/";
+ sourceProvenance = with sourceTypes; [ binaryBytecode ];
+ license = licenses.asl20;
+ maintainers = [ maintainers.sikmir ];
+ platforms = jre.meta.platforms;
+ };
+})