refind: add runtime dependencies

This commit is contained in:
John Garcia 2024-03-11 14:00:05 +00:00
parent 39b125de85
commit e8b29f4c39

View File

@ -1,4 +1,13 @@
{ lib, stdenv, fetchurl, fetchpatch, gnu-efi, nixosTests }: { lib
, stdenv
, fetchurl
, gnu-efi
, nixosTests
, efibootmgr
, openssl
, sbsigntool
, makeWrapper
}:
let let
archids = { archids = {
@ -26,6 +35,7 @@ stdenv.mkDerivation rec {
./0001-toolchain.patch ./0001-toolchain.patch
]; ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ gnu-efi ]; buildInputs = [ gnu-efi ];
hardeningDisable = [ "stackprotector" ]; hardeningDisable = [ "stackprotector" ];
@ -100,6 +110,13 @@ stdenv.mkDerivation rec {
runHook postInstall 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 = { passthru.tests = {
uefiCdrom = nixosTests.boot.uefiCdrom; uefiCdrom = nixosTests.boot.uefiCdrom;
}; };