summary refs log tree commit diff
path: root/pkgs/development/tools/misc/dbench/default.nix
blob: d7dad8cb0eabbf5b2c3b8d3ec3ff60c0cc372e19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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 = "16lcbwmmx8z5i73k3dnf54yffrpx7ql3y9k3cpkss9dcyxb1p83i";
  };

  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 ];
  };
}