Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 26 lines 659 B view raw
1{ lib, stdenv, fetchurl, unzip }: 2 3stdenv.mkDerivation rec { 4 pname = "msr-tools"; 5 version = "1.3"; 6 7 src = fetchurl { 8 url = "https://01.org/sites/default/files/downloads/msr-tools/${pname}-${version}.zip"; 9 sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr"; 10 }; 11 12 nativeBuildInputs = [ unzip ]; 13 14 preInstall = '' 15 mkdir -p $out/bin 16 substituteInPlace Makefile \ 17 --replace /usr/sbin $out/bin 18 ''; 19 20 meta = with lib; { 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 ]; 25 }; 26}