summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/brave/default.nix
diff options
context:
space:
mode:
authorLouis Bettens <louis@bettens.info>2020-12-31 17:42:30 +0100
committerDaniƫl de Kok <me@danieldk.eu>2021-01-01 13:31:17 +0100
commit051389eb1875b088be07aa5e9a15c19e88f9ba07 (patch)
tree812188874736301011f3a4d662b06dfd43f7fa3d /pkgs/applications/networking/browsers/brave/default.nix
parent37c9f30f660fa78228bf1fef1e1d7a1af7a80c3e (diff)
downloadnixpkgs-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar
nixpkgs-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.gz
nixpkgs-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.bz2
nixpkgs-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.lz
nixpkgs-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.xz
nixpkgs-051389eb1875b088be07aa5e9a15c19e88f9ba07.tar.zst
nixpkgs-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.
Diffstat (limited to 'pkgs/applications/networking/browsers/brave/default.nix')
-rw-r--r--pkgs/applications/networking/browsers/brave/default.nix6
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 9931b6003fb..92177183b0c 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; {