nixpkgs/pkgs/os-specific/linux/x86info/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-21 19:52:15 +00:00
{ lib
, stdenv
, fetchFromGitHub
, pciutils
, pkg-config
, python3
}:
2013-01-09 19:49:41 +00:00
stdenv.mkDerivation rec {
pname = "x86info";
2022-03-21 19:52:15 +00:00
version = "unstable-2021-08-07";
2013-01-09 19:49:41 +00:00
2022-03-21 19:52:15 +00:00
src = fetchFromGitHub {
owner = "kernelslacker";
repo = pname;
rev = "061ea35ecb0697761b6260998fa2045b8bb0be68";
hash = "sha256-/qWioC4dV1bQkU4SiTR8duYqoGIMIH7s8vuAXi75juo=";
2013-01-09 19:49:41 +00:00
};
2022-03-21 19:52:15 +00:00
nativeBuildInputs = [
pkg-config
python3
];
2022-03-21 19:52:15 +00:00
buildInputs = [
pciutils
];
2013-02-16 20:28:41 +00:00
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
2022-03-21 19:52:15 +00:00
postBuild = ''
patchShebangs lsmsr/createheader.py
make -C lsmsr
'';
2013-01-09 19:49:41 +00:00
installPhase = ''
mkdir -p $out/bin
2022-03-21 19:52:15 +00:00
cp x86info $out/bin
cp lsmsr/lsmsr $out/bin
2013-01-09 19:49:41 +00:00
'';
meta = {
description = "Identification utility for the x86 series of processors";
2022-03-21 19:52:15 +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;
2022-03-21 19:52:15 +00:00
homepage = "https://github.com/kernelslacker/x86info";
maintainers = with lib.maintainers; [ jcumming ];
2013-01-09 19:49:41 +00:00
};
}