vboot-utils: fix flashrom not found

This commit is contained in:
Moraxyc
2025-11-01 10:59:12 +08:00
parent 9d748b82bb
commit feb8b3e2e1
+10 -1
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitiles,
pkg-config,
makeBinaryWrapper,
libuuid,
openssl,
libyaml,
@@ -22,7 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-8a49xD+EYXDouFuBmLyAtPxThYET6DtKImBPzXVhpxE=";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
makeBinaryWrapper
];
buildInputs = [
libuuid
libyaml
@@ -58,6 +63,10 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
mkdir -p $out/share/vboot
cp -r tests/devkeys* $out/share/vboot/
''
+ lib.optionalString withFlashrom ''
wrapProgram $out/bin/crossystem \
--prefix PATH : ${lib.makeBinPath [ finalAttrs.passthru.flashromChromeos ]}
'';
passthru = {