Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 41 lines 891 B view raw
1{ lib 2, stdenv 3, fetchzip 4, installShellFiles 5}: 6 7stdenv.mkDerivation rec { 8 pname = "msr"; 9 version = "20060208"; 10 11 src = fetchzip { 12 name = "${pname}-${version}"; 13 url = "http://www.etallen.com/msr/${pname}-${version}.src.tar.gz"; 14 hash = "sha256-e01qYWbOALkXp5NpexuVodMxA3EBySejJ6ZBpZjyT+E="; 15 }; 16 17 nativeBuildInputs = [ 18 installShellFiles 19 ]; 20 21 patches = [ 22 ./000-include-sysmacros.patch 23 ]; 24 25 installPhase = '' 26 runHook preInstall 27 mkdir -p $out/bin/ 28 cp msr $out/bin/ 29 installManPage msr.man 30 runHook postInstall 31 ''; 32 33 meta = with lib; { 34 homepage = "http://www.etallen.com/msr.html"; 35 description = "Linux tool to display or modify x86 model-specific registers (MSRs)"; 36 mainProgram = "msr"; 37 license = licenses.bsd0; 38 maintainers = with maintainers; [ AndersonTorres ]; 39 platforms = [ "i686-linux" "x86_64-linux" ]; 40 }; 41}