brave: test rpath in installCheck

This check helps with making sure that we provide all the required
shared libraries to brave. If something is missing, the command will get
ENOENT, otherwise it should terminate normally.
This commit is contained in:
Louis Bettens 2020-12-31 17:42:30 +01:00 committed by Daniël de Kok
parent 37c9f30f66
commit 051389eb18

View File

@ -98,6 +98,7 @@ stdenv.mkDerivation rec {
dontConfigure = true;
dontBuild = true;
dontPatchELF = true;
doInstallCheck = true;
nativeBuildInputs = [ dpkg wrapGAppsHook ];
@ -147,6 +148,11 @@ stdenv.mkDerivation rec {
ln -sf ${xdg_utils}/bin/xdg-mime $out/opt/brave.com/brave/xdg-mime
'';
installCheckPhase = ''
# Bypass upstream wrapper which suppresses errors
$out/opt/brave.com/brave/brave --version
'';
passthru.updateScript = ./update.sh;
meta = with stdenv.lib; {