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, 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 ];