1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "http://www.math.utah.edu/~mayer/linux/${pname}-${version}.tar.gz";
9 sha256 = "1b01j7nmm3wd92ngvsmn2sbw43sl9fpx4xxmkrink68fz1rx0gbj";
13 substituteInPlace nbench1.h --replace '"NNET.DAT"' "\"$out/NNET.DAT\""
14 substituteInPlace sysspec.h --replace "malloc.h" "stdlib.h"
15 '' + lib.optionalString stdenv.isDarwin ''
16 substituteInPlace Makefile --replace "-static" ""
19 buildInputs = lib.optionals stdenv.hostPlatform.isGnu [
23 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
32 homepage = "https://www.math.utah.edu/~mayer/linux/bmark.html";
33 description = "A synthetic computing benchmark program";
34 platforms = platforms.unix;
35 maintainers = with lib.maintainers; [ bennofs ];