3
0
Fork 0
forked from mirrors/nixpkgs

msr: init at 20060208

This commit is contained in:
AndersonTorres 2021-11-02 22:17:59 -03:00
parent bd0b227bc9
commit 49466be320
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,11 @@
diff -Naur msr-old/msr.c msr-20060208/msr.c
--- msr-old/msr.c 1969-12-31 21:00:01.000000000 -0300
+++ msr-20060208/msr.c 2021-11-02 21:19:34.576722617 -0300
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchzip
, installShellFiles
}:
stdenv.mkDerivation rec {
pname = "msr";
version = "20060208";
src = fetchzip {
name = "${pname}-${version}";
url = "http://www.etallen.com/msr/${pname}-${version}.src.tar.gz";
hash = "sha256-e01qYWbOALkXp5NpexuVodMxA3EBySejJ6ZBpZjyT+E=";
};
nativeBuildInputs = [
installShellFiles
];
patches = [
./000-include-sysmacros.patch
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin/
cp msr $out/bin/
installManPage msr.man
runHook postInstall
'';
meta = with lib; {
homepage = "http://www.etallen.com/msr.html";
description = "Linux tool to display or modify x86 model-specific registers (MSRs)";
license = licenses.bsd0;
maintainers = with maintainers; [ AndersonTorres ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}

View file

@ -1577,6 +1577,8 @@ with pkgs;
cpuid = callPackage ../os-specific/linux/cpuid { };
msr = callPackage ../os-specific/linux/msr { };
ctrtool = callPackage ../tools/archivers/ctrtool { };
crowbar = callPackage ../tools/security/crowbar { };