forked from rarias/bscpkgs
Add ifort to intel compilers
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
, icc-unwrapped
|
||||
, wrapCCWith
|
||||
, libstdcxxHook
|
||||
, icc-license
|
||||
, intel-license
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -18,7 +18,7 @@ in wrapCCWith rec {
|
||||
echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-ldflags
|
||||
echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags
|
||||
|
||||
echo "export INTEL_LICENSE_FILE=${icc-license}" \
|
||||
echo "export INTEL_LICENSE_FILE=${intel-license}" \
|
||||
>> $out/nix-support/setup-hook
|
||||
|
||||
# Create the wrappers for icc and icpc
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, rpmextract
|
||||
, autoPatchelfHook
|
||||
, gcc
|
||||
, intel-mpi
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -27,6 +28,7 @@ stdenv.mkDerivation rec {
|
||||
rpmextract
|
||||
autoPatchelfHook
|
||||
gcc.cc.lib
|
||||
intel-mpi
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
@@ -34,6 +36,7 @@ stdenv.mkDerivation rec {
|
||||
rpmextract rpm/intel-comp-*.rpm
|
||||
rpmextract rpm/intel-c-comp-*.rpm
|
||||
rpmextract rpm/intel-openmp*.rpm
|
||||
rpmextract rpm/intel-ifort*.rpm
|
||||
|
||||
mkdir -p $out/{bin,lib,include}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user