2020-07-01 10:25:33 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2020-07-01 13:08:05 +02:00
|
|
|
, rpmextract
|
2020-07-01 10:25:33 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2019.1.217";
|
|
|
|
name = "intel-compiler-${version}";
|
|
|
|
|
|
|
|
# From Arch Linux PKGBUILD
|
|
|
|
dir_nr="16526";
|
2020-07-01 13:08:05 +02:00
|
|
|
year="2020";
|
|
|
|
v_a="1";
|
|
|
|
v_b="217";
|
|
|
|
update="1";
|
|
|
|
composer_xe_dir="compilers_and_libraries_${year}.${v_a}.${v_b}";
|
|
|
|
tgz="parallel_studio_xe_2020_update${update}_cluster_edition.tgz";
|
2020-07-01 10:25:33 +02:00
|
|
|
|
2020-07-01 13:08:05 +02:00
|
|
|
# sha256-/RHY3nKyvWBHT4vOe0Y+TLsiVZabnq8k9olXWqKiq6s=
|
2020-07-01 10:25:33 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/${dir_nr}/${tgz}";
|
2020-07-01 13:08:05 +02:00
|
|
|
sha256 = "1axblai5lmw9yqjaz7lvjraj5fsc7r37pklb9x3n1gdjfbgdh4gx";
|
2020-07-01 10:25:33 +02:00
|
|
|
};
|
2020-07-01 13:08:05 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
rpmextract
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
rpmextract rpm/intel-icc-*.rpm
|
|
|
|
rpmextract rpm/intel-comp-*.rpm
|
|
|
|
|
|
|
|
mkdir -p $out/{bin,lib,include}
|
|
|
|
|
|
|
|
pushd ./opt/intel/${composer_xe_dir}/linux/
|
|
|
|
cp -a bin/intel64/* $out/bin/
|
|
|
|
cp -a compiler/include/* $out/include/
|
|
|
|
popd
|
|
|
|
'';
|
2020-07-01 10:25:33 +02:00
|
|
|
}
|