mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
6b4cd6673a
strings. svn path=/nixpkgs/trunk/; revision=33267
28 lines
642 B
Nix
28 lines
642 B
Nix
{ stdenv, fetchurl, microcode2ucode }:
|
|
|
|
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";
|
|
};
|
|
|
|
buildInputs = [ microcode2ucode ];
|
|
sourceRoot = ".";
|
|
|
|
buildPhase = ''
|
|
intel-microcode2ucode microcode.dat
|
|
'';
|
|
|
|
installPhase = ''
|
|
ensureDir $out
|
|
cp -r intel-ucode "$out/"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.intel.com/;
|
|
description = "Microcode for Intel processors";
|
|
};
|
|
} |