21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
29 sha256 = "sha256-wdH+Zw7G2ZigzBMX8p3GKdFVx/AhbTNL+P3w+YjI/dc=";
36 cmakeFlags = lib.optionals withMPI [ "-DWITH_MPI=ON" ];
46 (octave.override { inherit hdf5; }) ]
47 ++ lib.optionals withQcsxcad [ qcsxcad ]
48 ++ lib.optionals withMPI [ mpi ]
49 ++ lib.optionals withHyp2mat [ hyp2mat ];
52 substituteInPlace $out/share/openEMS/matlab/setup.m \
53 --replace /usr/lib ${hdf5}/lib \
54 --replace /usr/include ${hdf5}/include
56 ${octave}/bin/mkoctfile -L${hdf5}/lib -I${hdf5}/include \
57 -lhdf5 $out/share/openEMS/matlab/h5readatt_octave.cc \
58 -o $out/share/openEMS/matlab/h5readatt_octave.oct
62 description = "Open Source Electromagnetic Field Solver";
63 homepage = "http://openems.de/index.php/Main_Page.html";
64 license = licenses.gpl3;
65 maintainers = with maintainers; [ matthuszagh ];
66 platforms = platforms.linux;
67 badPlatforms = platforms.aarch64;