3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/microcode/intel.nix

29 lines
631 B
Nix
Raw Normal View History

{ stdenv, fetchurl, microcode2ucode }:
2012-08-11 19:10:06 +01:00
let version = "20120606";
num = "21385";
in stdenv.mkDerivation {
name = "microcode-intel-${version}";
src = fetchurl {
url = "http://downloadmirror.intel.com/${num}/eng/microcode-${version}.tgz";
2012-08-11 19:10:06 +01:00
sha256 = "0hs95lj24zx3jscc64zg3hf8xc95vrnsyqlid66h453ib0wf8fg1";
};
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";
};
2012-08-11 19:10:06 +01:00
}