brave: fix eval error on armv7l

This commit is contained in:
Colin 2024-06-07 07:32:24 +00:00
parent 4a4ffadc64
commit 50450fe7fe

View File

@ -1,6 +1,12 @@
{ ... }:
{ pkgs, ... }:
{
sane.programs.brave = {
# convert eval error to build failure
packageUnwrapped = if (builtins.tryEval pkgs.brave).success then
pkgs.brave
else
pkgs.runCommandLocal "brave-not-supported" {} "false"
;
sandbox.method = "bwrap";
sandbox.wrapperType = "inplace"; # /opt/share/brave.com vendor-style packaging
sandbox.net = "all";