Merge pull request #301598 from danielbarter/refind-cross-fix

refind: fixing cross compiling
This commit is contained in:
Weijia Wang 2024-04-05 03:13:10 +02:00 committed by GitHub
commit a4d2378ef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 ]}
'';