2012-06-28 17:54:24 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-09-16 20:36:43 +00:00
|
|
|
name = "amd-ucode-2012-09-10";
|
2012-06-28 17:54:24 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-31 19:57:19 +00:00
|
|
|
urls =
|
2013-09-04 12:22:24 +00:00
|
|
|
[ "http://pkgs.fedoraproject.org/repo/pkgs/microcode_ctl/${name}.tar/559bc355d3799538584add80df2996f0/${name}.tar"
|
|
|
|
"http://www.amd64.org/pub/microcode/${name}.tar"
|
2013-08-31 19:57:19 +00:00
|
|
|
];
|
2012-09-16 20:36:43 +00:00
|
|
|
sha256 = "065phvhx5hx5ssdd1x2p5m1yv26ak7l5aaw6yk6h95x9mxn5r111";
|
2012-06-28 17:54:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2013-09-04 12:22:24 +00:00
|
|
|
mkdir -p $out/lib/firmware/amd-ucode $out/share/doc/amd-ucode
|
|
|
|
mv microcode_amd_fam15h.bin microcode_amd.bin $out/lib/firmware/amd-ucode/
|
|
|
|
mv LICENSE $out/share/doc/amd-ucode
|
2012-06-28 17:54:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-09-04 12:22:24 +00:00
|
|
|
description = "AMD Processor microcode patch";
|
|
|
|
homepage = http://www.amd64.org/support/microcode.html;
|
|
|
|
license = stdenv.lib.licenses.unfreeRedistributableFirmware;
|
2012-06-28 17:54:24 +00:00
|
|
|
};
|
|
|
|
}
|