about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/microcode/intel.nix
blob: 3294c90cb3a0d41b4880c93faf7aa0f460d6b718 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl }:

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";
  };

#  setSourceRoot = ''
#    sourceRoot=.
#  '';

  sourceRoot = ".";

  dontBuild = true;
  installPhase = ''
    ensureDir $out
    cp microcode.dat "$out/"
  '';

  meta = {
    homepage = http://www.intel.com;
    description = "Microcode for Intel processors";
  };
}