mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +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,
|
||||
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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue