bsc: add cpuid program

This commit is contained in:
Rodrigo Arias Mallo 2021-03-18 20:03:44 +01:00
parent d68ce914ba
commit 699404bafe
2 changed files with 22 additions and 0 deletions

21
bsc/cpuid/default.nix Normal file
View File

@ -0,0 +1,21 @@
{
stdenv
, perl # For the pod2man command
}:
stdenv.mkDerivation rec {
version = "20201006";
pname = "cpuid";
buildInputs = [ perl ];
# Replace /usr install directory for $out
postPatch = ''
sed -i "s@/usr@$out@g" Makefile
'';
src = builtins.fetchTarball {
url = "http://www.etallen.com/cpuid/${pname}-${version}.src.tar.gz";
sha256 = "04qhs938gs1kjxpsrnfy6lbsircsprfyh4db62s5cf83a1nrwn9w";
};
}

View File

@ -197,6 +197,7 @@ let
dummy = callPackage ./bsc/dummy/default.nix { };
mpptest = callPackage ./bsc/mpptest/default.nix { };
cpuid = callPackage ./bsc/cpuid/default.nix { };
# =================================================================
# Garlic benchmark