bonnie: refactor
This commit is contained in:
parent
9aedfde2aa
commit
89f7847889
2 changed files with 19 additions and 9 deletions
|
@ -1,4 +1,8 @@
|
|||
{ lib, stdenv, fetchurl, perl }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bonnie++";
|
||||
|
@ -6,17 +10,25 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "https://www.coker.com.au/bonnie++/bonnie++-${version}.tgz";
|
||||
sha256 = "sha256-qNM7vYG8frVZzlv25YS5tT+uo5zPtK6S5Y8nJX5Gjw4=";
|
||||
hash = "sha256-qNM7vYG8frVZzlv25YS5tT+uo5zPtK6S5Y8nJX5Gjw4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "bonnie++-2.00a-gcc11.patch";
|
||||
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-benchmarks/bonnie++/files/bonnie++-2.00a-gcc11.patch?id=d0f29755e969c805fbd6240905e3925671340666";
|
||||
hash = "sha256-/cIC4HYQco5Nv1UoTELl2OGD5hdWhbz3L0+GjN/vcdE=";
|
||||
})
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.coker.com.au/bonnie++/";
|
||||
description = "Hard drive and file system benchmark suite";
|
||||
license = lib.licenses.gpl2;
|
||||
homepage = "http://www.coker.com.au/bonnie++/";
|
||||
license = lib.licenses.gpl2Only;
|
||||
mainProgram = "bonnie++";
|
||||
maintainers = with lib.maintainers; [ wegank ];
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3597,9 +3597,7 @@ with pkgs;
|
|||
|
||||
bonnmotion = callPackage ../development/tools/misc/bonnmotion { };
|
||||
|
||||
bonnie = callPackage ../tools/filesystems/bonnie {
|
||||
stdenv = gcc10StdenvCompat;
|
||||
};
|
||||
bonnie = callPackage ../tools/filesystems/bonnie { };
|
||||
|
||||
boron = callPackage ../development/interpreters/boron { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue