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