lol

iozone: Include graphing scripts

+14 -2
+14 -2
pkgs/development/tools/misc/iozone/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv, fetchurl, gnuplot }: 2 2 3 3 let 4 4 target = if stdenv.system == "i686-linux" then ··· 28 28 29 29 buildFlags = target; 30 30 31 + enableParallelBuilding = true; 32 + 31 33 installPhase = '' 32 - mkdir -p $out/{bin,share/doc,share/man/man1} 34 + mkdir -p $out/{bin,share/doc,libexec,share/man/man1} 33 35 install docs/iozone.1 $out/share/man/man1/ 34 36 install docs/Iozone_ps.gz $out/share/doc/ 35 37 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 36 40 # License copy is mandated by the license, but it's not in the tarball. 37 41 install ${license} $out/share/doc/Iozone_License.txt 42 + ''; 43 + 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 38 50 ''; 39 51 40 52 meta = {