nixpkgs/pkgs/development/tools/misc/dbench/default.nix
Bjørn Forsman 3f27be8e5d dbench: move loadfiles from $out/share/ to $out/share/loadfiles/
Seems cleaner.

Hm, there are also loadfiles in $out/share/doc/dbench/loadfiles/
(installed by the upstream build system), but there is no iscsi/
directory in there.
2015-09-26 15:26:17 +02:00

30 lines
696 B
Nix

{ stdenv, fetchgit, autoconf, popt, zlib }:
stdenv.mkDerivation rec {
name = "dbench-2013-01-01";
src = fetchgit {
url = git://git.samba.org/sahlberg/dbench.git;
rev = "65b19870ed8d25bff14cafa1c30beb33f1fb6597";
sha256 = "0hzn7xr58y7f01hp02d0ciy2n5awskypfbdc56ff1vkr1b12i2p9";
};
buildInputs = [ autoconf popt zlib ];
preConfigure = ''
./autogen.sh
'';
postInstall = ''
cp -R loadfiles/ $out/share/
'';
meta = with stdenv.lib; {
description = "Filesystem benchmark tool based on load patterns";
homepage = https://dbench.samba.org/;
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};
}