2022-01-19 23:45:15 +00:00
|
|
|
{lib, stdenv, fetchurl, pciutils, python2}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.30";
|
|
|
|
pname = "x86info";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://codemonkey.org.uk/projects/x86info/${pname}-${version}.tgz";
|
|
|
|
sha256 = "0a4lzka46nabpsrg3n7akwr46q38f96zfszd73xcback1s2hjc7y";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
|
|
|
|
# ignore warnings
|
|
|
|
sed -i 's/-Werror -Wall//' Makefile
|
|
|
|
'';
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
buildInputs = [ pciutils python2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp x86info lsmsr $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Identification utility for the x86 series of processors";
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
x86info will identify all Intel/AMD/Centaur/Cyrix/VIA CPUs. It leverages
|
|
|
|
the cpuid kernel module where possible. it supports parsing model specific
|
|
|
|
registers (MSRs) via the msr kernel module. it will approximate processor
|
2021-02-05 17:12:51 +00:00
|
|
|
frequency, and identify the cache sizes and layout.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://codemonkey.org.uk/projects/x86info/";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [jcumming];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|