blas,lapack: symlink headers when using mkl

Some of these are necessary for things like python.pkgs.numexpr
This commit is contained in:
Matthew Bauer 2020-04-21 00:29:52 -05:00
parent 0caa375b4c
commit 8f58fa044d
2 changed files with 2 additions and 0 deletions

View file

@ -136,5 +136,6 @@ EOF
mkdir -p $out/nix-support
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook
ln -s $out/lib/libblas${canonicalExtension} $out/lib/libmkl_rt${stdenv.hostPlatform.extensions.sharedLibrary}
ln -sf ${blasProvider}/include/* $dev/include
'');
}

View file

@ -110,5 +110,6 @@ EOF
mkdir -p $out/nix-support
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook
ln -s $out/lib/liblapack${canonicalExtension} $out/lib/libmkl_rt${stdenv.hostPlatform.extensions.sharedLibrary}
ln -sf ${lapackProvider}/include/* $dev/include
'');
}