https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
26 lines
575 B
Nix
26 lines
575 B
Nix
{ lib
|
|
, pkg-config
|
|
, boost
|
|
, readline
|
|
, libxml2
|
|
, openmodelica
|
|
, mkOpenModelicaDerivation
|
|
}:
|
|
|
|
mkOpenModelicaDerivation rec {
|
|
pname = "omsimulator";
|
|
omdir = "OMSimulator";
|
|
omdeps = [ openmodelica.omcompiler ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ readline libxml2 boost ];
|
|
|
|
meta = with lib; {
|
|
description = "The OpenModelica FMI & SSP-based co-simulation environment";
|
|
homepage = "https://openmodelica.org";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ balodja smironov ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|