Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 974 B view raw
1{ 2 lib, 3 qtbase, 4 qttools, 5 qmake, 6 wrapQtAppsHook, 7 openmodelica, 8 mkOpenModelicaDerivation, 9}: 10 11mkOpenModelicaDerivation { 12 pname = "omplot"; 13 omdir = "OMPlot"; 14 omdeps = [ openmodelica.omcompiler ]; 15 omautoconf = true; 16 17 nativeBuildInputs = [ 18 qtbase 19 qttools 20 qmake 21 wrapQtAppsHook 22 ]; 23 24 postPatch = '' 25 sed -i OMPlot/Makefile.in -e 's|bindir = @includedir@|includedir = @includedir@|' 26 sed -i OMPlot/OMPlot/OMPlotGUI/*.pro -e '/INCLUDEPATH +=/s|$| ../../qwt/src|' 27 sed -i ''$(find -name qmake.m4) -e '/^\s*LRELEASE=/ s|LRELEASE=.*$|LRELEASE=${lib.getDev qttools}/bin/lrelease|' 28 ''; 29 30 dontUseQmakeConfigure = true; 31 QMAKESPEC = "linux-clang"; 32 33 meta = with lib; { 34 description = "Plotting tool for OpenModelica-generated results files"; 35 homepage = "https://openmodelica.org"; 36 license = licenses.gpl3Only; 37 maintainers = with maintainers; [ 38 balodja 39 smironov 40 ]; 41 platforms = platforms.linux; 42 }; 43}