1 { lib, stdenv, fetchFromGitHub, cmake, boost, eigen, libxml2, mpi, python3
2 , mklSupport ? true, mkl
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
11 owner = "febiosoftware";
14 sha256 = "187s4lyzr806xla3smq3lsvj3f6wxlhfkban89w0fnyfmfb8w9am";
19 src = ./fix-cmake.patch; # cannot find mkl libraries without this
20 so = stdenv.hostPlatform.extensions.sharedLibrary;
24 cmakeFlags = lib.optional mklSupport "-DUSE_MKL=On"
25 ++ lib.optional mklSupport "-DMKLROOT=${mkl}"
28 env.CXXFLAGS = lib.optionalString stdenv.isLinux "-include cstring";
49 nativeBuildInputs = [ cmake ];
50 buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ]
51 ++ lib.optional mklSupport mkl
55 description = "FEBio Suite Solver";
56 license = with lib.licenses; [ mit ];
57 homepage = "https://febio.org/";
58 platforms = lib.platforms.unix;
59 maintainers = with lib.maintainers; [ Scriptkiddi ];