diff options
author | Armeen Mahdian <mahdianarmeen@gmail.com> | 2022-03-21 14:52:15 -0500 |
---|---|---|
committer | Armeen Mahdian <mahdianarmeen@gmail.com> | 2022-03-23 05:45:37 -0500 |
commit | 58b569fa72a14ad43e693db42823005c07055e9f (patch) | |
tree | a56e4f7a261959288af2aa4b95c690a34a9c9fdf /pkgs/os-specific | |
parent | 9bc841fec1c0e8b9772afa29f934d2c7ce57da8e (diff) | |
download | nixlib-58b569fa72a14ad43e693db42823005c07055e9f.tar nixlib-58b569fa72a14ad43e693db42823005c07055e9f.tar.gz nixlib-58b569fa72a14ad43e693db42823005c07055e9f.tar.bz2 nixlib-58b569fa72a14ad43e693db42823005c07055e9f.tar.lz nixlib-58b569fa72a14ad43e693db42823005c07055e9f.tar.xz nixlib-58b569fa72a14ad43e693db42823005c07055e9f.tar.zst nixlib-58b569fa72a14ad43e693db42823005c07055e9f.zip |
x86info: 1.30 -> unstable-2021-08-07
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/x86info/default.nix | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/pkgs/os-specific/linux/x86info/default.nix b/pkgs/os-specific/linux/x86info/default.nix index e842b59651e7..db5b040da3a2 100644 --- a/pkgs/os-specific/linux/x86info/default.nix +++ b/pkgs/os-specific/linux/x86info/default.nix @@ -1,32 +1,45 @@ -{lib, stdenv, fetchurl, pciutils, python2}: +{ lib +, stdenv +, fetchFromGitHub +, pciutils +, pkg-config +, python3 +}: stdenv.mkDerivation rec { - version = "1.30"; pname = "x86info"; + version = "unstable-2021-08-07"; - src = fetchurl { - url = "http://codemonkey.org.uk/projects/x86info/${pname}-${version}.tgz"; - sha256 = "0a4lzka46nabpsrg3n7akwr46q38f96zfszd73xcback1s2hjc7y"; + src = fetchFromGitHub { + owner = "kernelslacker"; + repo = pname; + rev = "061ea35ecb0697761b6260998fa2045b8bb0be68"; + hash = "sha256-/qWioC4dV1bQkU4SiTR8duYqoGIMIH7s8vuAXi75juo="; }; - preConfigure = '' - patchShebangs . + nativeBuildInputs = [ + pkg-config + python3 + ]; - # ignore warnings - sed -i 's/-Werror -Wall//' Makefile - ''; + buildInputs = [ + pciutils + ]; - buildInputs = [ pciutils python2 ]; + postBuild = '' + patchShebangs lsmsr/createheader.py + make -C lsmsr + ''; installPhase = '' mkdir -p $out/bin - cp x86info lsmsr $out/bin + cp x86info $out/bin + cp lsmsr/lsmsr $out/bin ''; meta = { description = "Identification utility for the x86 series of processors"; - longDescription = - '' + 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 @@ -34,7 +47,7 @@ stdenv.mkDerivation rec { ''; platforms = [ "i686-linux" "x86_64-linux" ]; license = lib.licenses.gpl2; - homepage = "http://codemonkey.org.uk/projects/x86info/"; - maintainers = with lib.maintainers; [jcumming]; + homepage = "https://github.com/kernelslacker/x86info"; + maintainers = with lib.maintainers; [ jcumming ]; }; } |