mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
083d0890f5
* Remove package name * Start with upper case letter * Remove trailing period Also reword some descriptions and move some long descriptions to longDescription. I'm not touching generated packages.
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{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";
|
|
};
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
buildInputs = [ pciutils python ];
|
|
|
|
installPhase = ''
|
|
ensureDir $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
|
|
frequency, and identify the cache sizes and layout.
|
|
'';
|
|
platforms = stdenv.lib.platforms.linux;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
homepage = http://codemonkey.org.uk/projects/x86info/;
|
|
maintainers = with stdenv.lib.maintainers; [jcumming];
|
|
};
|
|
}
|