refind: add runtime dependencies
This commit is contained in:
parent
39b125de85
commit
e8b29f4c39
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue