febio: format with `nixfmt-rfc-style`

Emily f832d1cd ab44c335

+23 -10
+23 -10
pkgs/by-name/fe/febio/package.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, boost, eigen, libxml2, mpi, python3 2 - , mklSupport ? true, mkl 3 - , substituteAll 4 }: 5 6 stdenv.mkDerivation rec { ··· 16 17 patches = [ 18 (substituteAll { 19 - src = ./fix-cmake.patch; # cannot find mkl libraries without this 20 so = stdenv.hostPlatform.extensions.sharedLibrary; 21 }) 22 ]; 23 24 - cmakeFlags = lib.optional mklSupport "-DUSE_MKL=On" 25 - ++ lib.optional mklSupport "-DMKLROOT=${mkl}" 26 - ; 27 28 env.CXXFLAGS = lib.optionalString stdenv.isLinux "-include cstring"; 29 ··· 47 ''; 48 49 nativeBuildInputs = [ cmake ]; 50 - buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ] 51 - ++ lib.optional mklSupport mkl 52 - ; 53 54 meta = { 55 description = "FEBio Suite Solver";
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + boost, 7 + eigen, 8 + libxml2, 9 + mpi, 10 + python3, 11 + mklSupport ? true, 12 + mkl, 13 + substituteAll, 14 }: 15 16 stdenv.mkDerivation rec { ··· 26 27 patches = [ 28 (substituteAll { 29 + src = ./fix-cmake.patch; # cannot find mkl libraries without this 30 so = stdenv.hostPlatform.extensions.sharedLibrary; 31 }) 32 ]; 33 34 + cmakeFlags = lib.optional mklSupport "-DUSE_MKL=On" ++ lib.optional mklSupport "-DMKLROOT=${mkl}"; 35 36 env.CXXFLAGS = lib.optionalString stdenv.isLinux "-include cstring"; 37 ··· 55 ''; 56 57 nativeBuildInputs = [ cmake ]; 58 + buildInputs = [ 59 + boost 60 + eigen 61 + libxml2 62 + mpi 63 + python3 64 + python3.pkgs.numpy 65 + ] ++ lib.optional mklSupport mkl; 66 67 meta = { 68 description = "FEBio Suite Solver";