-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brave: fix overriding and update 1.64.116 -> 1.64.122 #303570
Conversation
I'm not a fan of duplicating arguments like # Expression generated by update.sh; do not edit it by hand!
{ stdenv, callPackage, ... }@args:
if stdenv.isAarch64 then
callPackage ./make-brave.nix (removeAttrs args [ "callPackage" ]) {
pname = "brave";
version = "1.64.116";
url = "https://github.com/brave/brave-browser/releases/download/v1.64.116/brave-browser_1.64.116_arm64.deb";
hash = "sha256-XC3GnutiTYdCOJPegj8MRYC5dRrBoKBg4k50ZFrlj4E=";
platform = "aarch64-linux";
}
else if stdenv.isx86_64 then
callPackage ./make-brave.nix (removeAttrs args [ "callPackage" ]) {
pname = "brave";
version = "1.64.116";
url = "https://github.com/brave/brave-browser/releases/download/v1.64.116/brave-browser_1.64.116_amd64.deb";
hash = "sha256-mnvFPfZu44TZGdUb+AxaJbecQrXkIzJkYvB4GO55uv0=";
platform = "x86_64-linux";
}
else
throw "Unsupported platform." |
That was my first solution too. I've taken a look at chromium package source and it puts each arguments in |
Hello, sorry to butt in, but how should something like brave = (pkgs.brave.override {
commandLineArgs = [ "--force-device-scale-factor=1.5" ];
}); but now this fails to build. Sorry for the noobie question! EDIT: Something like the following will build, but not apply the actual options: brave = (pkgs.brave.overrideAttrs (oldAttrs: {
commandLineArgs = [ "--force-device-scale-factor=1.5" ];
})); |
That is the problem this PR should fix, but this PR has not been merged to nixpkgs-unstable and nixos-unstable as seen in https://nixpk.gs/pr-tracker.html?pr=303570. If you're using those branches you might want to override brave with the package from the master branch until this gets merged to the other branches. |
Ah, ok that makes sense. Thank you so much!! |
Description of changes
Fix overriding
Brave: add arm64 support #298042 moved the derivation function to
make-brave.nix
, breaking previous calls tooverride
function.This PR exposes some arguments to
default.nix
so these would be overridable like previously.Update from 1.64.116 to 1.64.122
Release note: https://github.com/brave/brave-browser/releases/tag/v1.64.122
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.