nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit b4bec4ca92b37e8df83af5f941804423b8167747
parent bb8e4c6ed71ada38c9be958bd945d0c114201228
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun,  2 Jul 2023 07:30:00 +0400

Add ocelotgui

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/ocelotgui/default.nix | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -360,6 +360,7 @@ lib.makeScope newScope ( nanodns = callPackage ./misc/nanodns { }; nmtree = callPackage ./misc/nmtree { }; objlab = callPackage ./misc/objlab { }; + ocelotgui = libsForQt5.callPackage ./misc/ocelotgui { }; playonmac = callPackage ./misc/playonmac { }; plotjuggler = libsForQt5.callPackage ./misc/plotjuggler { }; pnoise = callPackage ./misc/pnoise { }; diff --git a/pkgs/misc/ocelotgui/default.nix b/pkgs/misc/ocelotgui/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub, cmake, desktopToDarwinBundle, mariadb-connector-c, wrapQtAppsHook }: + +stdenv.mkDerivation (finalAttrs: { + pname = "ocelotgui "; + version = "2.0.0"; + + src = fetchFromGitHub { + owner = "ocelot-inc"; + repo = "ocelotgui"; + rev = finalAttrs.version; + hash = "sha256-v8YMTc01bRDD5tqJIctTmtMkMD6+gh/CVKu/Vw9o7g0="; + }; + + nativeBuildInputs = [ cmake wrapQtAppsHook ] + ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; + + buildInputs = [ mariadb-connector-c ]; + + cmakeFlags = [ + "-DCMAKE_SKIP_RPATH=TRUE" + "-DMYSQL_INCLUDE_DIR=${mariadb-connector-c.dev}/include/mariadb" + "-DQT_VERSION=5" + "-DOCELOT_THIRD_PARTY=0" + ]; + + env.NIX_LDFLAGS = "-L${mariadb-connector-c}/lib/mariadb -lmysqlclient"; + + meta = with lib; { + description = "GUI client for MySQL or MariaDB"; + inherit (finalAttrs.src.meta) homepage; + license = licenses.gpl2; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +})