1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/os-specific/linux/x86info/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

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