Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1018 B
Nix
53 lines
1018 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
openmodelica,
|
|
symlinkJoin,
|
|
gnumake,
|
|
blas,
|
|
lapack,
|
|
makeWrapper,
|
|
}:
|
|
symlinkJoin {
|
|
name = "openmodelica-combined";
|
|
paths = with openmodelica; [
|
|
omcompiler
|
|
omsimulator
|
|
omplot
|
|
omparser
|
|
omedit
|
|
omlibrary
|
|
omshell
|
|
];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/OMEdit \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
gnumake
|
|
stdenv.cc
|
|
]
|
|
} \
|
|
--prefix LIBRARY_PATH : "${
|
|
lib.makeLibraryPath [
|
|
blas
|
|
lapack
|
|
]
|
|
}" \
|
|
--set-default OPENMODELICALIBRARY "${openmodelica.omlibrary}/lib/omlibrary"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open-source Modelica-based modeling and simulation environment intended for industrial and academic usage";
|
|
homepage = "https://openmodelica.org";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [
|
|
balodja
|
|
smironov
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|