diff options
author | Louis Bettens <louis@bettens.info> | 2020-12-31 17:42:30 +0100 |
---|---|---|
committer | Daniƫl de Kok <me@danieldk.eu> | 2021-01-01 13:31:17 +0100 |
commit | 051389eb1875b088be07aa5e9a15c19e88f9ba07 (patch) | |
tree | 812188874736301011f3a4d662b06dfd43f7fa3d | |
parent | 37c9f30f660fa78228bf1fef1e1d7a1af7a80c3e (diff) | |
download | nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.gz nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.bz2 nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.lz nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.xz nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.zst nixlib-051389eb1875b088be07aa5e9a15c19e88f9ba07.zip |
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.
-rw-r--r-- | pkgs/applications/networking/browsers/brave/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/brave/default.nix b/pkgs/applications/networking/browsers/brave/default.nix index 9931b6003fb0..92177183b0ca 100644 --- a/pkgs/applications/networking/browsers/brave/default.nix +++ b/pkgs/applications/networking/browsers/brave/default.nix @@ -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; { |