1 { lib, stdenv, fetchurl, unzip }:
3 stdenv.mkDerivation rec {
8 url = "https://01.org/sites/default/files/downloads/msr-tools/${pname}-${version}.zip";
9 sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr";
12 nativeBuildInputs = [ unzip ];
16 substituteInPlace Makefile \
17 --replace /usr/sbin $out/bin
21 description = "Tool to read/write from/to MSR CPU registers on Linux";
22 license = licenses.gpl2Plus;
23 platforms = platforms.linux;
24 maintainers = with maintainers; [ peterhoeg ];