mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
msr-tools: 1.3 -> 1.3-unstable-2022-08-05
This commit is contained in:
parent
20299e58ae
commit
397e3986bf
1 changed files with 11 additions and 15 deletions
|
@ -1,29 +1,25 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchFromGitHub,
|
||||||
unzip,
|
autoreconfHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation {
|
||||||
pname = "msr-tools";
|
pname = "msr-tools";
|
||||||
version = "1.3";
|
version = "1.3-unstable-2022-08-05";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://01.org/sites/default/files/downloads/msr-tools/${pname}-${version}.zip";
|
owner = "intel";
|
||||||
sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr";
|
repo = "msr-tools";
|
||||||
|
rev = "7d78c80d66463ac598bcc8bf1dc260418788dfda";
|
||||||
|
hash = "sha256-p+bfS1Fsz9MqPLmiVD8d+93oeUxxU2raKdRY7pThlzk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
preInstall = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
substituteInPlace Makefile \
|
|
||||||
--replace /usr/sbin $out/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool to read/write from/to MSR CPU registers on Linux";
|
description = "Tools to read/write from/to MSR CPU registers on Linux";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue