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
|
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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user