msr-tools: 1.3 -> 1.3-unstable-2022-08-05

+11 -15
+11 -15
pkgs/by-name/ms/msr-tools/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 5 - unzip, 4 + fetchFromGitHub, 5 + autoreconfHook, 6 6 }: 7 7 8 - stdenv.mkDerivation rec { 8 + stdenv.mkDerivation { 9 9 pname = "msr-tools"; 10 - version = "1.3"; 10 + version = "1.3-unstable-2022-08-05"; 11 11 12 - src = fetchurl { 13 - url = "https://01.org/sites/default/files/downloads/msr-tools/${pname}-${version}.zip"; 14 - sha256 = "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr"; 12 + src = fetchFromGitHub { 13 + owner = "intel"; 14 + repo = "msr-tools"; 15 + rev = "7d78c80d66463ac598bcc8bf1dc260418788dfda"; 16 + hash = "sha256-p+bfS1Fsz9MqPLmiVD8d+93oeUxxU2raKdRY7pThlzk="; 15 17 }; 16 18 17 - nativeBuildInputs = [ unzip ]; 18 - 19 - preInstall = '' 20 - mkdir -p $out/bin 21 - substituteInPlace Makefile \ 22 - --replace /usr/sbin $out/bin 23 - ''; 19 + nativeBuildInputs = [ autoreconfHook ]; 24 20 25 21 meta = with lib; { 26 - description = "Tool to read/write from/to MSR CPU registers on Linux"; 22 + description = "Tools to read/write from/to MSR CPU registers on Linux"; 27 23 license = licenses.gpl2Plus; 28 24 platforms = platforms.linux; 29 25 maintainers = with maintainers; [ peterhoeg ];