Merge pull request #32236 from guillaumekoenig/fix-enpass-firefox-webextensions
enpass: fix install to work with firefox webextensions
This commit is contained in:
commit
6d2167fc1e
|
@ -67,12 +67,13 @@ let
|
|||
cp -r usr/* $out
|
||||
rm $out/bin/runenpass.sh
|
||||
cp $out/bin/EnpassHelper/EnpassHelper{,.untampered}
|
||||
cp $out/bin/EnpassHelper/EnpassNMHost{,.untampered}
|
||||
|
||||
sed \
|
||||
-i s@/opt/Enpass/bin/runenpass.sh@$out/bin/Enpass@ \
|
||||
$out/share/applications/enpass.desktop
|
||||
|
||||
for i in $out/bin/{Enpass,EnpassHelper/EnpassHelper}; do
|
||||
for i in $out/bin/{Enpass,EnpassHelper/{EnpassHelper,EnpassNMHost}}; do
|
||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $i
|
||||
done
|
||||
|
||||
|
@ -85,8 +86,15 @@ let
|
|||
--set QT_XKB_CONFIG_ROOT "${xkeyboardconfig}/share/X11/xkb" \
|
||||
--set HIDE_TOOLBAR_LINE 0 \
|
||||
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||
--set NIX_REDIRECTS "$out/bin/EnpassHelper/EnpassHelper=$out/bin/EnpassHelper/EnpassHelper.untampered" \
|
||||
--set NIX_REDIRECTS "$out/bin/EnpassHelper/EnpassHelper=$out/bin/EnpassHelper/EnpassHelper.untampered:$out/bin/EnpassHelper/EnpassNMHost=$out/bin/EnpassHelper/EnpassNMHost.untampered" \
|
||||
--prefix PATH : ${lsof}/bin
|
||||
|
||||
makeWrapper $out/bin/EnpassHelper/{EnpassNMHost,runNativeMessaging.sh} \
|
||||
--set LD_LIBRARY_PATH "${libPath}:$out/lib:$out/plugins/sqldrivers" \
|
||||
--set QT_PLUGIN_PATH "$out/plugins" \
|
||||
--set QT_QPA_PLATFORM_PLUGIN_PATH "$out/plugins/platforms" \
|
||||
--set QT_XKB_CONFIG_ROOT "${xkeyboardconfig}/share/X11/xkb" \
|
||||
--set HIDE_TOOLBAR_LINE 0
|
||||
'';
|
||||
};
|
||||
updater = {
|
||||
|
|
Loading…
Reference in a new issue