@@ -0,0 +1,31 @@
1+{ stdenv, fetchurl, openblasCompat, mpi } :
2+
3+stdenv.mkDerivation rec {
4+ name = "hpl-${version}";
5+ version = "2.3";
6+
7+ src = fetchurl {
8+ url = "http://www.netlib.org/benchmark/hpl/${name}.tar.gz";
9+ sha256 = "0c18c7fzlqxifz1bf3izil0bczv3a7nsv0dn6winy3ik49yw3i9j";
10+ };
11+
12+ enableParallelBuilding = true;
13+
14+ postInstall = ''
15+ # only contains the static lib
16+ rm -r $out/lib
17+
18+ install -D testing/ptest/HPL.dat $out/share/hpl/HPL.dat
19+ '';
20+
21+ buildInputs = [ openblasCompat mpi ];
22+
23+ meta = with stdenv.lib; {
24+ description = "Portable Implementation of the Linpack Benchmark for Distributed-Memory Computers";
25+ homepage = http://www.netlib.org/benchmark/hpl/;
26+ platforms = platforms.unix;
27+ license = licenses.bsdOriginal;
28+ maintainers = [ maintainers.markuskowa ];
29+ };
30+}
31+