bsc: add new package lmbench

This commit is contained in:
Rodrigo Arias 2021-03-03 17:43:09 +01:00
parent c684b1870a
commit b79951c9fe
2 changed files with 41 additions and 0 deletions

40
bsc/lmbench/default.nix Normal file
View File

@ -0,0 +1,40 @@
{
stdenv,
fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "lmbench";
version = "701c6c35";
# We use the intel repo as they have fixed some problems
src = fetchFromGitHub {
owner = "intel";
repo = pname;
rev = "701c6c35b0270d4634fb1dc5272721340322b8ed";
sha256 = "0sf6zk03knkardsfd6qx7drpm56nhg53n885cylkggk83r38idyr";
};
postUnpack = ''
export sourceRoot="$sourceRoot/src"
'';
postPatch = ''
sed -i "s@/bin/rm@rm@g" $(find . -name Makefile)
'';
hardeningDisable = [ "format" ];
enableParallelBuilding = false;
preBuild = ''
makeFlagsArray+=(BASE=$out)
'';
meta = {
description = "lmbench";
homepage = "http://www.bitmover.com/lmbench/";
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -158,6 +158,7 @@ let
# =================================================================
osumb = callPackage ./bsc/osu/default.nix { };
lmbench = callPackage ./bsc/lmbench/default.nix { };
pmix2 = callPackage ./bsc/pmix/pmix2.nix { };
slurm17 = callPackage ./bsc/slurm/default.nix {
pmix = bsc.pmix2;