Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 32 lines 894 B view raw
1{ stdenv, fetchFromGitHub, libarchive, iucode-tool }: 2 3stdenv.mkDerivation rec { 4 pname = "microcode-intel"; 5 version = "20190618"; 6 7 src = fetchFromGitHub { 8 owner = "intel"; 9 repo = "Intel-Linux-Processor-Microcode-Data-Files"; 10 rev = "microcode-${version}"; 11 sha256 = "0fdhrpxvsq0rm5mzj82gvmfb3lm7mhc9hwvimv7dl1jaidbp6lvs"; 12 }; 13 14 nativeBuildInputs = [ iucode-tool libarchive ]; 15 16 installPhase = '' 17 runHook preInstall 18 19 mkdir -p $out kernel/x86/microcode 20 iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode/ 21 echo kernel/x86/microcode/GenuineIntel.bin | bsdcpio -o -H newc -R 0:0 > $out/intel-ucode.img 22 23 runHook postInstall 24 ''; 25 26 meta = with stdenv.lib; { 27 homepage = http://www.intel.com/; 28 description = "Microcode for Intel processors"; 29 license = licenses.unfreeRedistributableFirmware; 30 platforms = platforms.linux; 31 }; 32}