diff options
author | Joachim Fasting <joachifm@users.noreply.github.com> | 2016-06-04 04:56:53 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@users.noreply.github.com> | 2016-06-04 04:56:53 +0200 |
commit | 7dca3873d03612f24a2650d4623fde6f35a80cfc (patch) | |
tree | 41863f376372a50129551e540efb026e09e90524 /pkgs/development/tools/misc | |
parent | 236cfe4e78616375b7e397a6c071ca7682071dfc (diff) | |
parent | 63cc9d00a189a6d1bead8648484a5ba113e7deb5 (diff) | |
download | nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.tar nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.tar.gz nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.tar.bz2 nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.tar.lz nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.tar.xz nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.tar.zst nixpkgs-7dca3873d03612f24a2650d4623fde6f35a80cfc.zip |
Merge pull request #15938 from Baughn/iozone
iozone: Include graphing scripts
Diffstat (limited to 'pkgs/development/tools/misc')
-rw-r--r-- | pkgs/development/tools/misc/iozone/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/iozone/default.nix b/pkgs/development/tools/misc/iozone/default.nix index ad3a64d22ba..7e241680887 100644 --- a/pkgs/development/tools/misc/iozone/default.nix +++ b/pkgs/development/tools/misc/iozone/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, gnuplot }: let target = if stdenv.system == "i686-linux" then @@ -28,15 +28,27 @@ stdenv.mkDerivation rec { buildFlags = target; + enableParallelBuilding = true; + installPhase = '' - mkdir -p $out/{bin,share/doc,share/man/man1} + mkdir -p $out/{bin,share/doc,libexec,share/man/man1} install docs/iozone.1 $out/share/man/man1/ install docs/Iozone_ps.gz $out/share/doc/ install -s src/current/{iozone,fileop,pit_server} $out/bin/ + install src/current/{gnu3d.dem,Generate_Graphs,gengnuplot.sh} $out/libexec/ + ln -s $out/libexec/Generate_Graphs $out/bin/iozone_generate_graphs # License copy is mandated by the license, but it's not in the tarball. install ${license} $out/share/doc/Iozone_License.txt ''; + preFixup = '' + sed -i "1i#! $shell" $out/libexec/Generate_Graphs + substituteInPlace $out/libexec/Generate_Graphs \ + --replace ./gengnuplot.sh $out/libexec/gengnuplot.sh \ + --replace 'gnuplot ' "${gnuplot}/bin/gnuplot " \ + --replace gnu3d.dem $out/libexec/gnu3d.dem + ''; + meta = { description = "IOzone Filesystem Benchmark"; homepage = http://www.iozone.org/; |