Skip to content

File tree

pkgs/tools/misc/coreboot-utils/default.nix

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{ lib, stdenv, fetchurl, zlib, pciutils, coreutils, acpica-tools, makeWrapper, gnugrep, gnused, file, buildEnv }:
1+
{ lib, stdenv, fetchurl, pkg-config, zlib, pciutils, openssl, coreutils, acpica-tools, makeWrapper, gnugrep, gnused, file, buildEnv }:
22

33
let
4-
version = "4.14";
4+
version = "4.19";
55

66
commonMeta = with lib; {
77
description = "Various coreboot-related tools";
@@ -16,7 +16,7 @@ let
1616

1717
src = fetchurl {
1818
url = "https://coreboot.org/releases/coreboot-${version}.tar.xz";
19-
sha256 = "0viw2x4ckjwiylb92w85k06b0g9pmamjy2yqs7fxfqbmfadkf1yr";
19+
sha256 = "sha256-Zcyy9GU1uZbgBmobdvgcjPH/PiffhLP5fYrXs+fPCkM=";
2020
};
2121

2222
enableParallelBuilding = true;
@@ -32,7 +32,7 @@ let
3232
];
3333

3434
meta = commonMeta // args.meta;
35-
} // (removeAttrs args ["meta"]));
35+
} // (removeAttrs args [ "meta" ]));
3636

3737
utils = {
3838
msrtool = generic {
@@ -84,6 +84,8 @@ let
8484
amdfwtool = generic {
8585
pname = "amdfwtool";
8686
meta.description = "Create AMD firmware combination";
87+
buildInputs = [ openssl ];
88+
nativeBuildInputs = [ pkg-config ];
8789
installPhase = ''
8890
runHook preInstall
8991
@@ -105,13 +107,15 @@ let
105107
106108
runHook postInstall
107109
'';
108-
postFixup = let
109-
binPath = [ coreutils acpica-tools gnugrep gnused file ];
110-
in "wrapProgram $out/bin/acpidump-all --set PATH ${lib.makeBinPath binPath}";
110+
postFixup = ''
111+
wrapProgram $out/bin/acpidump-all \
112+
--set PATH ${lib.makeBinPath [ coreutils acpica-tools gnugrep gnused file ]}
113+
'';
111114
};
112115
};
113116

114-
in utils // {
117+
in
118+
utils // {
115119
coreboot-utils = (buildEnv {
116120
name = "coreboot-utils-${version}";
117121
paths = lib.attrValues utils;

0 commit comments

Comments
 (0)