2012-02-05 21:44:19 +01:00
|
|
|
{ stdenv, fetchurl, microcode2ucode }:
|
2012-02-01 23:05:21 +01:00
|
|
|
|
|
|
|
let version = "20111110";
|
|
|
|
num = "20728";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "microcode-intel-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloadmirror.intel.com/${num}/eng/microcode-${version}.tgz";
|
|
|
|
sha256 = "16f532cdf9cce03e01e714619ad9406a465aa965bbd1288035398db79921cbc1";
|
|
|
|
};
|
|
|
|
|
2012-02-05 21:44:19 +01:00
|
|
|
buildInputs = [ microcode2ucode ];
|
2012-02-01 23:05:21 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
2012-02-05 21:44:19 +01:00
|
|
|
buildPhase = ''
|
|
|
|
intel-microcode2ucode microcode.dat
|
|
|
|
'';
|
|
|
|
|
2012-02-01 23:05:21 +01:00
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out
|
2012-02-05 21:44:19 +01:00
|
|
|
cp -r intel-ucode "$out/"
|
2012-02-01 23:05:21 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.intel.com;
|
|
|
|
description = "Microcode for Intel processors";
|
|
|
|
};
|
|
|
|
}
|