nixpkgs/pkgs/by-name/bo/bonnie/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
943 B
Nix

{ lib
, stdenv
, fetchurl
, fetchpatch
}:
stdenv.mkDerivation rec {
pname = "bonnie++";
version = "2.00a";
src = fetchurl {
url = "https://www.coker.com.au/bonnie++/bonnie++-${version}.tgz";
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;
meta = {
description = "Hard drive and file system benchmark suite";
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;
};
}