forked from mirrors/nixpkgs
msr: init at 20060208
This commit is contained in:
parent
bd0b227bc9
commit
49466be320
11
pkgs/os-specific/linux/msr/000-include-sysmacros.patch
Normal file
11
pkgs/os-specific/linux/msr/000-include-sysmacros.patch
Normal 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>
|
40
pkgs/os-specific/linux/msr/default.nix
Normal file
40
pkgs/os-specific/linux/msr/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue