2021-01-15 15:45:37 +01:00
|
|
|
{lib, stdenv, fetchurl, pciutils, python}:
|
2013-01-09 20:49:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.30";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "x86info";
|
2013-01-09 20:49:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://codemonkey.org.uk/projects/x86info/${pname}-${version}.tgz";
|
2013-01-09 20:49:41 +01:00
|
|
|
sha256 = "0a4lzka46nabpsrg3n7akwr46q38f96zfszd73xcback1s2hjc7y";
|
|
|
|
};
|
|
|
|
|
2014-12-03 22:22:30 +01:00
|
|
|
preConfigure = ''
|
2015-01-08 10:26:49 +01:00
|
|
|
patchShebangs .
|
|
|
|
|
2014-12-03 22:22:30 +01:00
|
|
|
# ignore warnings
|
|
|
|
sed -i 's/-Werror -Wall//' Makefile
|
|
|
|
'';
|
2013-02-16 21:28:41 +01:00
|
|
|
|
2013-01-09 20:49:41 +01:00
|
|
|
buildInputs = [ pciutils python ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p $out/bin
|
2013-01-09 20:49:41 +01:00
|
|
|
cp x86info lsmsr $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Identification utility for the x86 series of processors";
|
2013-02-16 21:28:41 +01:00
|
|
|
longDescription =
|
2013-01-11 18:25:32 +01: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
|
2021-01-15 15:45:37 +01:00
|
|
|
frequency, and identify the cache sizes and layout.
|
2013-01-11 18:25:32 +01:00
|
|
|
'';
|
2017-09-13 14:08:42 +02:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2021-01-15 15:45:37 +01:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://codemonkey.org.uk/projects/x86info/";
|
2021-01-15 15:45:37 +01:00
|
|
|
maintainers = with lib.maintainers; [jcumming];
|
2013-01-09 20:49:41 +01:00
|
|
|
};
|
|
|
|
}
|