diff options
author | Sergey Mironov <Sergey.Mironov@kaspersky.com> | 2015-07-22 16:43:01 +0300 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-07-23 20:42:42 +0200 |
commit | 80d6b708ac4d6573c361eedf64ebbe87ec3ce53e (patch) | |
tree | 0e99abf81f58dd4cf7d803e7decae7a311f4b534 /pkgs/applications/science/misc | |
parent | 9bb0fee487f639671768bbaa2412cd9c8956c493 (diff) | |
download | nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.tar nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.tar.gz nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.tar.bz2 nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.tar.lz nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.tar.xz nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.tar.zst nixpkgs-80d6b708ac4d6573c361eedf64ebbe87ec3ce53e.zip |
openmodelica: Fix runtime PATHs using wrapProgram, fixes #8949
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"; |