diff options
Diffstat (limited to 'pkgs/applications/science/misc')
-rw-r--r-- | pkgs/applications/science/misc/openmodelica/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/applications/science/misc/openmodelica/default.nix b/pkgs/applications/science/misc/openmodelica/default.nix index 8420d445e09..3741187067d 100644 --- a/pkgs/applications/science/misc/openmodelica/default.nix +++ b/pkgs/applications/science/misc/openmodelica/default.nix @@ -1,7 +1,7 @@ {stdenv, fetchgit, fetchsvn, autoconf, automake, libtool, gfortran, clang, cmake, gnumake, hwloc, jre, liblapack, blas, hdf5, expat, ncurses, readline, qt4, webkit, which, lp_solve, omniorb, sqlite, libatomic_ops, pkgconfig, file, gettext, flex, bison, -doxygen, boost, openscenegraph, gnome, pangox_compat, xlibs, git, bash, gtk }: +doxygen, boost, openscenegraph, gnome, pangox_compat, xlibs, git, bash, gtk, makeWrapper }: let @@ -18,7 +18,7 @@ stdenv.mkDerivation { hwloc jre liblapack blas hdf5 expat ncurses readline qt4 webkit which lp_solve omniorb sqlite libatomic_ops pkgconfig file gettext flex bison doxygen boost openscenegraph gnome.gtkglext pangox_compat xlibs.libXmu - git gtk]; + git gtk makeWrapper]; patchPhase = '' cp -fv ${fakegit}/bin/checkout-git.sh libraries/checkout-git.sh @@ -30,6 +30,14 @@ stdenv.mkDerivation { ./configure CC=${clang}/bin/clang CXX=${clang}/bin/clang++ --prefix=$out ''; + postFixup = '' + for e in $(cd $out/bin && ls); do + wrapProgram $out/bin/$e \ + --prefix PATH : "${gnumake}/bin" \ + --prefix LIBRARY_PATH : "${liblapack}/lib:${blas}/lib" + done + ''; + meta = with stdenv.lib; { description = "OpenModelica is an open-source Modelica-based modeling and simulation environment"; homepage = "https://openmodelica.org"; |