From 0a09affbc4634d3c605c33ca39a83f338284ee17 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 23 Jul 2020 18:47:20 +0200 Subject: [PATCH] impi: use fetchTarball --- bsc/intel-mpi/default.nix | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/bsc/intel-mpi/default.nix b/bsc/intel-mpi/default.nix index 55b45b6..38608b7 100644 --- a/bsc/intel-mpi/default.nix +++ b/bsc/intel-mpi/default.nix @@ -1,5 +1,4 @@ { stdenv -, requireFile , rpmextract , libfabric , gcc @@ -11,25 +10,13 @@ stdenv.mkDerivation rec { name = "intel-mpi-${version}"; version = "2019.7.217"; + dir_nr = "16546"; lib_variant = (if enableDebug then "debug" else "release"); - src = requireFile { - name = "l_mpi_2019.7.217.tgz"; - sha256 = "01wwmiqff5lad7cdi8i57bs3kiphpjfv52sxll1w0jpq4c03nf4h"; - message = '' - The package with Intel MPI cannot be redistributed freely, so you must do it - manually. Go to: - - https://software.intel.com/content/www/us/en/develop/tools/mpi-library.html - - And register in order to download Intel MPI (is free of charge). Then you will - be allowed to download it. Copy the url and use: - - nix-prefetch-url http://registrationcenter-download.intel.com/...../l_mpi_2019.7.217.tgz - - To add it to the store. Then try again building this derivation. - ''; + src = builtins.fetchTarball { + url = "http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/${dir_nr}/l_mpi_${version}.tgz"; + sha256 = "19l995aavbn5lkiz9sxl6iwmjsrvjgjp14nn0qi1hjqs705db5li"; }; buildInputs = [