lol

iozone: Include graphing scripts

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