restinio: fix build (#375955)
[NixPkgs.git] / pkgs / by-name / bo / bonnie / package.nix
blob7d912d103504d4b41723abb7cb9a1c68b8c9dc12
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "bonnie++";
10   version = "2.00a";
12   src = fetchurl {
13     url = "https://www.coker.com.au/bonnie++/bonnie++-${version}.tgz";
14     hash = "sha256-qNM7vYG8frVZzlv25YS5tT+uo5zPtK6S5Y8nJX5Gjw4=";
15   };
17   patches = [
18     (fetchpatch {
19       name = "bonnie++-2.00a-gcc11.patch";
20       url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-benchmarks/bonnie++/files/bonnie++-2.00a-gcc11.patch?id=d0f29755e969c805fbd6240905e3925671340666";
21       hash = "sha256-/cIC4HYQco5Nv1UoTELl2OGD5hdWhbz3L0+GjN/vcdE=";
22     })
23   ];
25   enableParallelBuilding = true;
27   meta = {
28     description = "Hard drive and file system benchmark suite";
29     homepage = "http://www.coker.com.au/bonnie++/";
30     license = lib.licenses.gpl2Only;
31     mainProgram = "bonnie++";
32     maintainers = with lib.maintainers; [ wegank ];
33     platforms = lib.platforms.linux ++ lib.platforms.darwin;
34   };