1 { lib, stdenv, fetchFromGitHub, cmake, boost, eigen, libxml2, mpi, python3
2 , mklSupport ? true, mkl
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
10 owner = "febiosoftware";
13 sha256 = "187s4lyzr806xla3smq3lsvj3f6wxlhfkban89w0fnyfmfb8w9am";
17 ./fix-cmake.patch # cannot find mkl libraries without this
20 cmakeFlags = lib.optional mklSupport "-DUSE_MKL=On"
21 ++ lib.optional mklSupport "-DMKLROOT=${mkl}"
43 nativeBuildInputs = [ cmake ];
44 buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ]
45 ++ lib.optional mklSupport mkl
49 description = "FEBio Suite Solver";
50 license = with lib.licenses; [ mit ];
51 homepage = "https://febio.org/";
52 platforms = lib.platforms.unix;
53 maintainers = with lib.maintainers; [ Scriptkiddi ];