tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
iozone: Include graphing scripts
Svein Ove Aas
9 years ago
63cc9d00
2661511c
+14
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
misc
iozone
default.nix
+14
-2
pkgs/development/tools/misc/iozone/default.nix
···
1
1
-
{ stdenv, fetchurl }:
1
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
31
+
enableParallelBuilding = true;
32
32
+
31
33
installPhase = ''
32
32
-
mkdir -p $out/{bin,share/doc,share/man/man1}
34
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
38
+
install src/current/{gnu3d.dem,Generate_Graphs,gengnuplot.sh} $out/libexec/
39
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
42
+
'';
43
43
+
44
44
+
preFixup = ''
45
45
+
sed -i "1i#! $shell" $out/libexec/Generate_Graphs
46
46
+
substituteInPlace $out/libexec/Generate_Graphs \
47
47
+
--replace ./gengnuplot.sh $out/libexec/gengnuplot.sh \
48
48
+
--replace 'gnuplot ' "${gnuplot}/bin/gnuplot " \
49
49
+
--replace gnu3d.dem $out/libexec/gnu3d.dem
38
50
'';
39
51
40
52
meta = {