NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

55 lines
886 B

{ stdenv
, fetchzip
, openmpi
, libbfd
, libz
, lib
, which
, ...
}:
with lib;
stdenv.mkDerivation rec {
pname = "scalasca";
version = "2.6.1";
src = fetchzip {
url = "https://apps.fz-juelich.de/${pname}/releases/${pname}/${versions.majorMinor version}/dist/${pname}-${version}.tar.gz";
hash = "sha256-GENZD8ep9ukWR9SgZw4bocIO6XCAyYgT5G44zkt7hbc=";
};
configureFlags = [
"--with-mpi=openmpi"
];
dontStrip = true;
nativeBuildinputs = [
which
];
buildInputs = [
openmpi
libbfd
libz
];
preFixup = ''
for f in "$out"/{bin,lib}/*; do
if [ -f "$f" ] && isELF "$f"; then
patchelf \
--add-rpath "$out"/lib \
"$f"
patchelf \
--shrink-rpath \
--allowed-rpath-prefixes "$NIX_STORE" \
"$f"
fi
done
'';
enableParallelBuilding = true;
}