tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
x86info: 1.30 -> unstable-2021-08-07
Armeen Mahdian
3 years ago
58b569fa
9bc841fe
+29
-16
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
x86info
default.nix
+29
-16
pkgs/os-specific/linux/x86info/default.nix
···
1
-
{lib, stdenv, fetchurl, pciutils, python2}:
0
0
0
0
0
0
2
3
stdenv.mkDerivation rec {
4
-
version = "1.30";
5
pname = "x86info";
0
6
7
-
src = fetchurl {
8
-
url = "http://codemonkey.org.uk/projects/x86info/${pname}-${version}.tgz";
9
-
sha256 = "0a4lzka46nabpsrg3n7akwr46q38f96zfszd73xcback1s2hjc7y";
0
0
10
};
11
12
-
preConfigure = ''
13
-
patchShebangs .
0
0
0
0
0
0
14
15
-
# ignore warnings
16
-
sed -i 's/-Werror -Wall//' Makefile
0
17
'';
18
19
-
buildInputs = [ pciutils python2 ];
20
-
21
installPhase = ''
22
mkdir -p $out/bin
23
-
cp x86info lsmsr $out/bin
0
24
'';
25
26
meta = {
27
description = "Identification utility for the x86 series of processors";
28
-
longDescription =
29
-
''
30
x86info will identify all Intel/AMD/Centaur/Cyrix/VIA CPUs. It leverages
31
the cpuid kernel module where possible. it supports parsing model specific
32
registers (MSRs) via the msr kernel module. it will approximate processor
···
34
'';
35
platforms = [ "i686-linux" "x86_64-linux" ];
36
license = lib.licenses.gpl2;
37
-
homepage = "http://codemonkey.org.uk/projects/x86info/";
38
-
maintainers = with lib.maintainers; [jcumming];
39
};
40
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitHub
4
+
, pciutils
5
+
, pkg-config
6
+
, python3
7
+
}:
8
9
stdenv.mkDerivation rec {
0
10
pname = "x86info";
11
+
version = "unstable-2021-08-07";
12
13
+
src = fetchFromGitHub {
14
+
owner = "kernelslacker";
15
+
repo = pname;
16
+
rev = "061ea35ecb0697761b6260998fa2045b8bb0be68";
17
+
hash = "sha256-/qWioC4dV1bQkU4SiTR8duYqoGIMIH7s8vuAXi75juo=";
18
};
19
20
+
nativeBuildInputs = [
21
+
pkg-config
22
+
python3
23
+
];
24
+
25
+
buildInputs = [
26
+
pciutils
27
+
];
28
29
+
postBuild = ''
30
+
patchShebangs lsmsr/createheader.py
31
+
make -C lsmsr
32
'';
33
0
0
34
installPhase = ''
35
mkdir -p $out/bin
36
+
cp x86info $out/bin
37
+
cp lsmsr/lsmsr $out/bin
38
'';
39
40
meta = {
41
description = "Identification utility for the x86 series of processors";
42
+
longDescription = ''
0
43
x86info will identify all Intel/AMD/Centaur/Cyrix/VIA CPUs. It leverages
44
the cpuid kernel module where possible. it supports parsing model specific
45
registers (MSRs) via the msr kernel module. it will approximate processor
···
47
'';
48
platforms = [ "i686-linux" "x86_64-linux" ];
49
license = lib.licenses.gpl2;
50
+
homepage = "https://github.com/kernelslacker/x86info";
51
+
maintainers = with lib.maintainers; [ jcumming ];
52
};
53
}