msr-tools: 1.3 -> 1.3-unstable-2022-08-05

This commit is contained in:
Peter H. Hoeg 2025-05-20 12:48:52 +02:00 committed by Peter Hoeg
parent 20299e58ae
commit 397e3986bf

View file

@ -1,29 +1,25 @@
{
lib,
stdenv,
fetchurl,
unzip,
fetchFromGitHub,
autoreconfHook,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "msr-tools";
version = "1.3";
version = "1.3-unstable-2022-08-05";
src = fetchurl {
url = "https://01.org/sites/default/files/downloads/msr-tools/${pname}-${version}.zip";
sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr";
src = fetchFromGitHub {
owner = "intel";
repo = "msr-tools";
rev = "7d78c80d66463ac598bcc8bf1dc260418788dfda";
hash = "sha256-p+bfS1Fsz9MqPLmiVD8d+93oeUxxU2raKdRY7pThlzk=";
};
nativeBuildInputs = [ unzip ];
preInstall = ''
mkdir -p $out/bin
substituteInPlace Makefile \
--replace /usr/sbin $out/bin
'';
nativeBuildInputs = [ autoreconfHook ];
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;
platforms = platforms.linux;
maintainers = with maintainers; [ peterhoeg ];