tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
msr-tools: 1.3 -> 1.3-unstable-2022-08-05
Peter H. Hoeg
8 months ago
397e3986
20299e58
+11
-15
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ms
msr-tools
package.nix
+11
-15
pkgs/by-name/ms/msr-tools/package.nix
···
1
{
2
lib,
3
stdenv,
4
-
fetchurl,
5
-
unzip,
6
}:
7
8
-
stdenv.mkDerivation rec {
9
pname = "msr-tools";
10
-
version = "1.3";
11
12
-
src = fetchurl {
13
-
url = "https://01.org/sites/default/files/downloads/msr-tools/${pname}-${version}.zip";
14
-
sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr";
0
0
15
};
16
17
-
nativeBuildInputs = [ unzip ];
18
-
19
-
preInstall = ''
20
-
mkdir -p $out/bin
21
-
substituteInPlace Makefile \
22
-
--replace /usr/sbin $out/bin
23
-
'';
24
25
meta = with lib; {
26
-
description = "Tool to read/write from/to MSR CPU registers on Linux";
27
license = licenses.gpl2Plus;
28
platforms = platforms.linux;
29
maintainers = with maintainers; [ peterhoeg ];
···
1
{
2
lib,
3
stdenv,
4
+
fetchFromGitHub,
5
+
autoreconfHook,
6
}:
7
8
+
stdenv.mkDerivation {
9
pname = "msr-tools";
10
+
version = "1.3-unstable-2022-08-05";
11
12
+
src = fetchFromGitHub {
13
+
owner = "intel";
14
+
repo = "msr-tools";
15
+
rev = "7d78c80d66463ac598bcc8bf1dc260418788dfda";
16
+
hash = "sha256-p+bfS1Fsz9MqPLmiVD8d+93oeUxxU2raKdRY7pThlzk=";
17
};
18
19
+
nativeBuildInputs = [ autoreconfHook ];
0
0
0
0
0
0
20
21
meta = with lib; {
22
+
description = "Tools to read/write from/to MSR CPU registers on Linux";
23
license = licenses.gpl2Plus;
24
platforms = platforms.linux;
25
maintainers = with maintainers; [ peterhoeg ];