nur-packages

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

default.nix (1202B)


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