Improved the expression for intel microcode.
svn path=/nixpkgs/trunk/; revision=32042
This commit is contained in:
parent
c81e27f1f7
commit
2d7fe30288
29
pkgs/os-specific/linux/microcode/converter.nix
Normal file
29
pkgs/os-specific/linux/microcode/converter.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "microcode2ucode-20120205";
|
||||
src = fetchurl {
|
||||
url = "http://gentoo-overlays.zugaina.org/gentoo/portage/sys-apps/microcode-data/files/intel-microcode2ucode.c";
|
||||
sha256 = "c51b1b1d8b4b28e7d5d007917c1e444af1a2ff04a9408aa9067c0e57d70164de";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
unpackPhase = ''
|
||||
# nothing to unpack
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
gcc -Wall -O2 $src -o intel-microcode2ucode
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/bin"
|
||||
cp intel-microcode2ucode "$out/bin/"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.intel.com;
|
||||
description = "Microcode converter for Intel .dat files";
|
||||
};
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, microcode2ucode }:
|
||||
|
||||
let version = "20111110";
|
||||
num = "20728";
|
||||
@ -9,16 +9,16 @@ in stdenv.mkDerivation {
|
||||
sha256 = "16f532cdf9cce03e01e714619ad9406a465aa965bbd1288035398db79921cbc1";
|
||||
};
|
||||
|
||||
# setSourceRoot = ''
|
||||
# sourceRoot=.
|
||||
# '';
|
||||
|
||||
buildInputs = [ microcode2ucode ];
|
||||
sourceRoot = ".";
|
||||
|
||||
dontBuild = true;
|
||||
buildPhase = ''
|
||||
intel-microcode2ucode microcode.dat
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out
|
||||
cp microcode.dat "$out/"
|
||||
cp -r intel-ucode "$out/"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -5273,6 +5273,8 @@ let
|
||||
|
||||
alsaUtils = callPackage ../os-specific/linux/alsa-utils { };
|
||||
|
||||
microcode2ucode = callPackage ../os-specific/linux/microcode/converter.nix { };
|
||||
|
||||
microcodeIntel = callPackage ../os-specific/linux/microcode/intel.nix { };
|
||||
|
||||
bcm43xx = callPackage ../os-specific/linux/firmware/bcm43xx { };
|
||||
|
Loading…
Reference in New Issue
Block a user