nixpkgs/pkgs/tools/filesystems/bonnie/default.nix
Pascal Bach 260f0e0c5c bonnie: fix bon_csv2txt utility
The bon_csv2txt utility is a perl script. By default it is looking forbonnie: fix bon_csv2txt utility

The bon_csv2txt utility is a perl script. By default it is looking for
perl in /usr/bin/perl which doesn't work on nixos.

This changes patches the perl interpreter correctly. But this comes as at a cost of
closure size increase from 34'006'536 bytes to  90'289'456 bytes as perl is now a dependency.

An alterantive would be to patch the file to use /usr/bin/env perl and just rely on a perl interpreter
being present in PATH.

perl in /usr/bin/perl which doesn't work on nixos.

This changes patches the perl interpreter correctly. But this comes as at a cost of
closure size increase as perl is now a dependency.

An alterantive would be to patch the file to use /usr/bin/env perl and just rely on a perl interpreter
being present in PATH.
2019-03-10 10:29:53 +01:00

20 lines
542 B
Nix

{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
name = "bonnie++-1.98";
src = fetchurl {
url = "https://www.coker.com.au/bonnie++/${name}.tgz";
sha256 = "010bmlmi0nrlp3aq7p624sfaj5a65lswnyyxk3cnz1bqig0cn2vf";
};
enableParallelBuilding = true;
buildInputs = [ perl ];
meta = {
homepage = http://www.coker.com.au/bonnie++/;
description = "Hard drive and file system benchmark suite";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
};
}