mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
openmodelica: Fix runtime PATHs using wrapProgram, fixes #8949
This commit is contained in:
parent
9bb0fee487
commit
80d6b708ac
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user