refind: add runtime dependencies

This commit is contained in:
John Garcia 2024-03-11 14:00:05 +00:00
parent 39b125de85
commit e8b29f4c39
1 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,13 @@
{ lib, stdenv, fetchurl, fetchpatch, gnu-efi, nixosTests }:
{ lib
, stdenv
, fetchurl
, gnu-efi
, nixosTests
, efibootmgr
, openssl
, sbsigntool
, makeWrapper
}:
let
archids = {
@ -26,6 +35,7 @@ stdenv.mkDerivation rec {
./0001-toolchain.patch
];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ gnu-efi ];
hardeningDisable = [ "stackprotector" ];
@ -100,6 +110,13 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
postInstall = ''
wrapProgram $out/bin/refind-install \
--prefix PATH : ${lib.makeBinPath [ efibootmgr openssl sbsigntool ]}
wrapProgram $out/bin/refind-mvrefind \
--prefix PATH : ${lib.makeBinPath [ efibootmgr ]}
'';
passthru.tests = {
uefiCdrom = nixosTests.boot.uefiCdrom;
};