10 stdenv.mkDerivation (finalAttrs: {
11 pname = "amd-ucodegen";
12 version = "0-unstable-2017-06-07";
14 src = fetchFromGitHub {
16 repo = "amd-ucodegen";
17 rev = "0d34b54e396ef300d0364817e763d2c7d1ffff02";
18 hash = "sha256-pgmxzd8tLqdQ8Kmmhl05C5tMlCByosSrwx2QpBu3UB0=";
24 # Extract get_family function and validate processor family
25 # instead of processor ID
27 name = "validate-family-not-id.patch";
28 url = "https://github.com/AndyLavr/amd-ucodegen/compare/0d34b54e396ef300d0364817e763d2c7d1ffff02...dobo90:amd-ucodegen:7a3c51e821df96910ecb05b22f3e4866b4fb85b2.patch";
29 hash = "sha256-jvsvu9QgXikwsxjPiTaRff+cOg/YQmKg1MYKyBoMRQI=";
36 install -Dm755 amd-ucodegen $out/bin/amd-ucodegen
42 updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
43 tests.platomav = callPackage ./test-platomav.nix { amd-ucodegen = finalAttrs.finalPackage; };
47 description = "Tool to generate AMD microcode files";
49 This tool can be used to generate AMD microcode containers as used by the
50 Linux kernel. It accepts raw AMD microcode files such as those generated
51 by [MCExtractor](https://github.com/platomav/MCExtractor.git) as input.
52 The generated output file can be installed in /lib/firmware/amd-ucode.
54 homepage = "https://github.com/AndyLavr/amd-ucodegen";
55 license = lib.licenses.gpl2Only;
56 platforms = lib.platforms.unix;
57 mainProgram = "amd-ucodegen";
58 maintainers = with lib.maintainers; [ d-brasher ];