package.nix (1261B)
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 ] 37 ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; 38 39 buildInputs = [ 40 qt5.qtsvg 41 qt5.qtwebsockets 42 mosquitto 43 libdwarf 44 protobuf 45 zeromq 46 zstd 47 ] 48 ++ lib.optionals stdenv.isLinux [ qt5.qtx11extras ]; 49 50 meta = { 51 description = "The Time Series Visualization Tool"; 52 homepage = "https://www.plotjuggler.io/"; 53 license = lib.licenses.mpl20; 54 maintainers = [ lib.maintainers.sikmir ]; 55 platforms = lib.platforms.unix; 56 broken = true; 57 }; 58 })
