nur-packages

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

commit 6c8bf617f64d468445ff9006b0d96c05d4e53170
parent bd61e4bada3b8e7dfb6a3880ff7912d68eac3517
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 11 Jun 2023 20:39:07 +0400

Add plotjuggler

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -356,6 +356,7 @@ lib.makeScope newScope ( nmtree = callPackage ./misc/nmtree { }; objlab = callPackage ./misc/objlab { }; playonmac = callPackage ./misc/playonmac { }; + plotjuggler = libsForQt5.callPackage ./misc/plotjuggler { }; pnoise = callPackage ./misc/pnoise { }; ptunnel = callPackage ./misc/ptunnel { }; pvs-studio = callPackage ./misc/pvs-studio { }; diff --git a/pkgs/misc/plotjuggler/default.nix b/pkgs/misc/plotjuggler/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub, cmake, desktopToDarwinBundle, wrapQtAppsHook +, qtsvg, qtwebsockets, qtx11extras, mosquitto, libdwarf, protobuf, zeromq, zstd }: + +stdenv.mkDerivation rec { + pname = "plotjuggler"; + version = "3.7.1"; + + src = fetchFromGitHub { + owner = "facontidavide"; + repo = "PlotJuggler"; + rev = version; + hash = "sha256-3OLJV6MhnbldZRLmgvJl9nGBzdZx2yHlvvROG/hOcB0="; + }; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace "set(PJ_PLUGIN_INSTALL_DIRECTORY bin)" "set(PJ_PLUGIN_INSTALL_DIRECTORY lib/plugins)" + substituteInPlace plotjuggler_app/mainwindow.cpp \ + --replace "QCoreApplication::applicationDirPath()" "\"$out/lib/plugins\"" + ''; + + nativeBuildInputs = [ cmake wrapQtAppsHook ] + ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; + + buildInputs = [ qtsvg qtwebsockets mosquitto libdwarf protobuf zeromq zstd ] + ++ lib.optionals stdenv.isLinux [ qtx11extras ]; + + meta = with lib; { + description = "The Time Series Visualization Tool"; + homepage = "https://www.plotjuggler.io/"; + license = licenses.mpl20; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}