9 stdenv.mkDerivation rec {
10 pname = "microcode-intel";
13 src = fetchFromGitHub {
15 repo = "Intel-Linux-Processor-Microcode-Data-Files";
16 rev = "microcode-${version}";
17 hash = "sha256-dvXt4SX/90oFM4GR9R7C2udhZ+plxnabOZpbtwN3V8Q=";
28 mkdir -p $out kernel/x86/microcode
29 iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode/
30 touch -d @$SOURCE_DATE_EPOCH kernel/x86/microcode/GenuineIntel.bin
31 echo kernel/x86/microcode/GenuineIntel.bin | bsdtar --uid 0 --gid 0 -cnf - -T - | bsdtar --null -cf - --format=newc @- > $out/intel-ucode.img
37 homepage = "https://www.intel.com/";
38 changelog = "https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/releases/tag/${src.rev}";
39 description = "Microcode for Intel processors";
40 license = licenses.unfreeRedistributableFirmware;
45 maintainers = with maintainers; [ felixsinger ];