diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2019-03-10 10:24:02 +0100 |
---|---|---|
committer | Pascal Bach <pascal.bach@nextrem.ch> | 2019-03-10 10:29:53 +0100 |
commit | 260f0e0c5cb4196c74624e5c7235824e554f1914 (patch) | |
tree | eff048132f97dcb11229a91140c77f0de153e576 | |
parent | d03988738614712e91d97cc13fddf011b3f2d822 (diff) | |
download | nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.tar nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.tar.gz nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.tar.bz2 nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.tar.lz nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.tar.xz nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.tar.zst nixpkgs-260f0e0c5cb4196c74624e5c7235824e554f1914.zip |
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.
-rw-r--r-- | pkgs/tools/filesystems/bonnie/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/bonnie/default.nix b/pkgs/tools/filesystems/bonnie/default.nix index bd7c8f0ecfb..57dc51e4111 100644 --- a/pkgs/tools/filesystems/bonnie/default.nix +++ b/pkgs/tools/filesystems/bonnie/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, perl }: stdenv.mkDerivation rec { name = "bonnie++-1.98"; @@ -9,6 +9,8 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + buildInputs = [ perl ]; + meta = { homepage = http://www.coker.com.au/bonnie++/; description = "Hard drive and file system benchmark suite"; |