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
-
{ stdenv, fetchurl }:
2
3
let
4
target = if stdenv.system == "i686-linux" then
···
28
29
buildFlags = target;
30
0
0
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/
0
0
36
# License copy is mandated by the license, but it's not in the tarball.
37
install ${license} $out/share/doc/Iozone_License.txt
0
0
0
0
0
0
0
0
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 = {