2013-01-09 19:49:41 +00:00
|
|
|
{stdenv, fetchurl, pciutils, python}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.30";
|
|
|
|
name = "x86info-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://codemonkey.org.uk/projects/x86info/${name}.tgz";
|
|
|
|
sha256 = "0a4lzka46nabpsrg3n7akwr46q38f96zfszd73xcback1s2hjc7y";
|
|
|
|
};
|
|
|
|
|
2013-02-16 20:28:41 +00:00
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
2013-01-09 19:49:41 +00:00
|
|
|
buildInputs = [ pciutils python ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/bin
|
2013-01-09 19:49:41 +00:00
|
|
|
cp x86info lsmsr $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Identification utility for the x86 series of processors";
|
2013-02-16 20:28:41 +00:00
|
|
|
longDescription =
|
2013-01-11 17:25:32 +00:00
|
|
|
''
|
|
|
|
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
|
|
|
|
frequency, and identify the cache sizes and layout.
|
|
|
|
'';
|
2013-01-09 19:49:41 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-01-11 17:25:32 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
homepage = http://codemonkey.org.uk/projects/x86info/;
|
2013-01-09 19:49:41 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [jcumming];
|
|
|
|
};
|
|
|
|
}
|