nixpkgs/pkgs/applications/science/misc/openmodelica/combined/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

31 lines
897 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;
};
}