brave: fix eval error on armv7l
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
sane.programs.brave = {
|
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.method = "bwrap";
|
||||||
sandbox.wrapperType = "inplace"; # /opt/share/brave.com vendor-style packaging
|
sandbox.wrapperType = "inplace"; # /opt/share/brave.com vendor-style packaging
|
||||||
sandbox.net = "all";
|
sandbox.net = "all";
|
||||||
|
Reference in New Issue
Block a user