refind: fixing cross compiling

This commit is contained in:
Daniel Barter 2024-04-04 10:08:32 -07:00
parent 8063d6bd8b
commit 1d34371bea

View File

@ -5,6 +5,7 @@
, nixosTests
, efibootmgr
, openssl
, withSbsigntool ? false # currently, cross compiling sbsigntool is broken, so default to false
, sbsigntool
, makeWrapper
}:
@ -112,7 +113,7 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/refind-install \
--prefix PATH : ${lib.makeBinPath [ efibootmgr openssl sbsigntool ]}
--prefix PATH : ${lib.makeBinPath ( [ efibootmgr openssl ] ++ lib.optional withSbsigntool sbsigntool )}
wrapProgram $out/bin/refind-mvrefind \
--prefix PATH : ${lib.makeBinPath [ efibootmgr ]}
'';