fwupd: wrap programs needed in PATH

This commit is contained in:
worldofpeace
2019-08-03 09:40:20 -04:00
parent 6a79f6fb71
commit f45a34ad06
2 changed files with 6 additions and 59 deletions
@@ -39,12 +39,7 @@ in stdenv.mkDerivation rec {
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit flashrom efibootmgr bubblewrap;
tpm2_tools = "${tpm2-tools}";
})
./fix-paths.patch
./add-option-for-installation-sysconfdir.patch
# installed tests are installed to different output
@@ -77,7 +72,11 @@ in stdenv.mkDerivation rec {
# doCheck = true;
preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
# See programs reached with fu_common_find_program_in_path in source
--prefix PATH : "${stdenv.lib.makeBinPath [ flashrom efibootmgr bubblewrap tpm2-tools ]}"
)
'';
mesonFlags = [