package.nix (1257B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 desktopToDarwinBundle, 7 qt5, 8 mosquitto, 9 libdwarf, 10 protobuf, 11 zeromq, 12 zstd, 13 }: 14 15 stdenv.mkDerivation (finalAttrs: { 16 pname = "plotjuggler"; 17 version = "3.9.3"; 18 19 src = fetchFromGitHub { 20 owner = "facontidavide"; 21 repo = "PlotJuggler"; 22 tag = finalAttrs.version; 23 hash = "sha256-tcEcFGLLEHsBDb3sBEPs/WmDf7NNnwL/hbme5XfMgJI="; 24 }; 25 26 postPatch = '' 27 substituteInPlace CMakeLists.txt \ 28 --replace-fail "set(PJ_PLUGIN_INSTALL_DIRECTORY bin)" "set(PJ_PLUGIN_INSTALL_DIRECTORY lib/plugins)" 29 substituteInPlace plotjuggler_app/mainwindow.cpp \ 30 --replace-fail "QCoreApplication::applicationDirPath()" "\"$out/lib/plugins\"" 31 ''; 32 33 nativeBuildInputs = [ 34 cmake 35 qt5.wrapQtAppsHook 36 ] ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; 37 38 buildInputs = [ 39 qt5.qtsvg 40 qt5.qtwebsockets 41 mosquitto 42 libdwarf 43 protobuf 44 zeromq 45 zstd 46 ] ++ lib.optionals stdenv.isLinux [ qt5.qtx11extras ]; 47 48 meta = { 49 description = "The Time Series Visualization Tool"; 50 homepage = "https://www.plotjuggler.io/"; 51 license = lib.licenses.mpl20; 52 maintainers = [ lib.maintainers.sikmir ]; 53 platforms = lib.platforms.unix; 54 broken = true; 55 }; 56 })