@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, gnuplot }:
22
33let
44 target = if stdenv.system == "i686-linux" then
@@ -28,15 +28,27 @@ stdenv.mkDerivation rec {
2828
2929 buildFlags = target;
3030
31+ enableParallelBuilding = true;
32+
3133 installPhase = ''
32− mkdir -p $out/{bin,share/doc,share/man/man1}
34+ mkdir -p $out/{bin,share/doc,libexec,share/man/man1}
3335 install docs/iozone.1 $out/share/man/man1/
3436 install docs/Iozone_ps.gz $out/share/doc/
3537 install -s src/current/{iozone,fileop,pit_server} $out/bin/
38+ install src/current/{gnu3d.dem,Generate_Graphs,gengnuplot.sh} $out/libexec/
39+ ln -s $out/libexec/Generate_Graphs $out/bin/iozone_generate_graphs
3640 # License copy is mandated by the license, but it's not in the tarball.
3741 install ${license} $out/share/doc/Iozone_License.txt
3842 '';
3943
44+ preFixup = ''
45+ sed -i "1i#! $shell" $out/libexec/Generate_Graphs
46+ substituteInPlace $out/libexec/Generate_Graphs \
47+ --replace ./gengnuplot.sh $out/libexec/gengnuplot.sh \
48+ --replace 'gnuplot ' "${gnuplot}/bin/gnuplot " \
49+ --replace gnu3d.dem $out/libexec/gnu3d.dem
50+ '';
51+
4052 meta = {
4153 description = "IOzone Filesystem Benchmark";
4254 homepage = http://www.iozone.org/;