mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
febio: format with nixfmt-rfc-style
This commit is contained in:
parent
ab44c335e0
commit
f832d1cd9c
|
@ -1,6 +1,16 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, boost, eigen, libxml2, mpi, python3
|
||||
, mklSupport ? true, mkl
|
||||
, substituteAll
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
boost,
|
||||
eigen,
|
||||
libxml2,
|
||||
mpi,
|
||||
python3,
|
||||
mklSupport ? true,
|
||||
mkl,
|
||||
substituteAll,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -16,14 +26,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-cmake.patch; # cannot find mkl libraries without this
|
||||
src = ./fix-cmake.patch; # cannot find mkl libraries without this
|
||||
so = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
})
|
||||
];
|
||||
|
||||
cmakeFlags = lib.optional mklSupport "-DUSE_MKL=On"
|
||||
++ lib.optional mklSupport "-DMKLROOT=${mkl}"
|
||||
;
|
||||
cmakeFlags = lib.optional mklSupport "-DUSE_MKL=On" ++ lib.optional mklSupport "-DMKLROOT=${mkl}";
|
||||
|
||||
env.CXXFLAGS = lib.optionalString stdenv.isLinux "-include cstring";
|
||||
|
||||
|
@ -47,9 +55,14 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ]
|
||||
++ lib.optional mklSupport mkl
|
||||
;
|
||||
buildInputs = [
|
||||
boost
|
||||
eigen
|
||||
libxml2
|
||||
mpi
|
||||
python3
|
||||
python3.pkgs.numpy
|
||||
] ++ lib.optional mklSupport mkl;
|
||||
|
||||
meta = {
|
||||
description = "FEBio Suite Solver";
|
||||
|
|
Loading…
Reference in a new issue