mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
41 lines
891 B
Nix
41 lines
891 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchzip
|
|
, installShellFiles
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "msr";
|
|
version = "20060208";
|
|
|
|
src = fetchzip {
|
|
name = "${pname}-${version}";
|
|
url = "http://www.etallen.com/msr/${pname}-${version}.src.tar.gz";
|
|
hash = "sha256-e01qYWbOALkXp5NpexuVodMxA3EBySejJ6ZBpZjyT+E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
patches = [
|
|
./000-include-sysmacros.patch
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin/
|
|
cp msr $out/bin/
|
|
installManPage msr.man
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.etallen.com/msr.html";
|
|
description = "Linux tool to display or modify x86 model-specific registers (MSRs)";
|
|
mainProgram = "msr";
|
|
license = licenses.bsd0;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
}
|