diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-03-19 22:21:36 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-03-24 11:46:56 +0800 |
commit | 59261f20f0ca18e761df342e1243e0a6ff3d3387 (patch) | |
tree | 1d53af6d274e9de0deb5095f103bdda87937feec /pkgs/os-specific/linux/msr-tools | |
parent | a9644fb1f04f736d43c6d665d95fe72891233b88 (diff) |
msr-tools: init at 1.3
Diffstat (limited to 'pkgs/os-specific/linux/msr-tools')
-rw-r--r-- | pkgs/os-specific/linux/msr-tools/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/msr-tools/default.nix b/pkgs/os-specific/linux/msr-tools/default.nix new file mode 100644 index 0000000000000..128f3eac26356 --- /dev/null +++ b/pkgs/os-specific/linux/msr-tools/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "msr-tools-${version}"; + version = "1.3"; + + src = fetchurl { + url = "https://01.org/sites/default/files/downloads/msr-tools/${name}.zip"; + sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr"; + }; + + buildInputs = [ unzip ]; + + preInstall = '' + mkdir -p $out/bin + substituteInPlace Makefile \ + --replace /usr/sbin $out/bin + ''; + + meta = with stdenv.lib; { + description = "Tool to read/write from/to MSR CPU registers on Linux"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ peterhoeg ]; + }; +} |