diff options
author | John Garcia <jgarcia3788@yahoo.co.uk> | 2024-03-11 14:00:05 +0000 |
---|---|---|
committer | John Garcia <jgarcia3788@yahoo.co.uk> | 2024-03-13 13:39:06 +0000 |
commit | e8b29f4c394cca6111790ad68ef72d8203955c72 (patch) | |
tree | 30ffbda5d4e436ff365e48d1394e2697736a02a8 | |
parent | 39b125de85ac3a8205a1742cf6093f13608675c2 (diff) |
refind: add runtime dependencies
-rw-r--r-- | pkgs/tools/bootloaders/refind/default.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/tools/bootloaders/refind/default.nix b/pkgs/tools/bootloaders/refind/default.nix index 4a5805a4c57f..1a0b333b70a7 100644 --- a/pkgs/tools/bootloaders/refind/default.nix +++ b/pkgs/tools/bootloaders/refind/default.nix @@ -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; }; |