From feb8b3e2e1a790ed4d373cd4fe3b4d8ada8ab6f5 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Sat, 1 Nov 2025 10:59:12 +0800 Subject: [PATCH] vboot-utils: fix flashrom not found --- pkgs/by-name/vb/vboot-utils/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/vb/vboot-utils/package.nix b/pkgs/by-name/vb/vboot-utils/package.nix index 051bb0ac0382..030354e9326c 100644 --- a/pkgs/by-name/vb/vboot-utils/package.nix +++ b/pkgs/by-name/vb/vboot-utils/package.nix @@ -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 = {