Repository navigation
brave, brave-origin: extract shared builder, init at 1.92.144 - #540488
Conversation
|
Looks pretty good. If you can update the PR to match the brave update that just got merged, and flag update.sh as executable, I'll approve it. |
d92c524 to
7072634
Compare
Done |
|
Sorry, I missed one thing when I was reading it yesterday. Other than that, I tested the browser build for x86_64-linux on nixos-unstable, tested the update script, and read through the new files for any obvious issues. Did not find any other issues. |
7072634 to
af46995
Compare
Fixed it |
buckley310
left a comment
There was a problem hiding this comment.
Tested re-launching it to make sure the updated all-packages was working, Looks good.
|
Do i need the remaining 2 approvals from @uskudnik and @JeffLabonte to get this PR merged? |
Not necessarily, as other PRs have been open for months and only buckley310 seems to care. We just need to find someone with merge permissions. |
Jappie3
left a comment
There was a problem hiding this comment.
it is not clear from the PR body whether or not this PR follows the automation / AI policy (https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy), did you remove it from the template when creating the PR?
|
I was going to give it a couple days in case anyone else tagged on this wanted to weigh in. After that, I was going to ping someone in this thread or post on Discourse to get it merged. Could potentially get merged in the meantime anyway if a committer sees it, that also works. I think the AI/Automation checkbox is missing because this PR was partially from another one which predates that checkbox. |
af46995 to
a4b6d22
Compare
|
New change just drops x86 darwin. Probably an OK time to do that, since its deprecated in 26.11. |
|
Just realized that x86 darwin got treewide-dropped in master already, so good we updated that :) New brave security update is out, so this PR will need to sync up with that after that one merges. It's been a few days so I don't think anyone who was pinged has anything else to say, so after the security update settles I'll get moving on this. |
0c4e0a3 to
8c935f1
Compare
| --replace-fail 'CHROME_WRAPPER' 'WRAPPER' | ||
|
|
||
| ln -sf $BINARYWRAPPER $out/bin/brave | ||
| ln -sf $BINARYWRAPPER $out/bin/${pname} |
There was a problem hiding this comment.
Should we not use optName here, too?
There was a problem hiding this comment.
using ${pname} which resolves to the same value.
There was a problem hiding this comment.
We have a tracking issue to not use pname in string interpolation 😅
There was a problem hiding this comment.
Just send a PR afterward, otherwise we have here merge conflicts everyday
df40ef9 to
d5b8ca4
Compare
37bd4e3 to
fd906bb
Compare
|
Code, as of fd906bb looks okay to me. I think you'll need to squash the commits, though. |
fd906bb to
73f2a33
Compare
|
I wish there's a 'Nixpkgs Merge Requests' matrix room similar to 'Nixpkgs Review Requests' |
buckley310
left a comment
There was a problem hiding this comment.
New commit looks good. Just cleanup, no code changes.
Tested launching the browsers anyway, just to make sure.
Introduce brave-origin variant and extract a shared builder for Brave. - brave: 1.92.144 - brave-origin: new, 1.92.144 Brave Origin is a stripped-down build that drops non-privacy extras (rewards, wallet, AI, etc.) while keeping Shields and the Chromium engine. The shared builder lives outside pkgs/by-name/ because by-name forbids cross-directory file references. Layout follows the firefox pattern. Co-authored-by: buckley310 <[email protected]>
73f2a33 to
a16f93f
Compare
|
Version bumped |
|
I created a separate flake repo for the nightly + beta channels in case anyone is interested: https://codeberg.org/marcelmanz/brave-origin-channels |
NixOS/nixpkgs#540488 merged 166a63ea12788b94493842c4574e5d3fd4496c92 on 2026-07-25, an ancestor of the nixpkgs revision this flake pins (1f6cbe8047dc154462ceec5b0c37b99cbeacc1cf). It ships pkgs.brave-origin through a shared brave/brave-origin builder, superseding the closed NixOS/nixpkgs#511131 this repo's copy in packages/brave-origin/ was written against. Remove packages/brave-origin/ and modules/custom-overlays/brave-origin.nix. modules/browsers/brave-origin/apps.nix already selects the package with lib.mkPackageOption pkgs "brave-origin" { }, so it now resolves straight to the nixpkgs attribute with no config change; only its header comment drops the stale local-copy notes. docs/ONBOARDING.md still lists brave-origin as an update.py example; left alone since that page is already over the docs-style 150-line cap and out of scope here. Validation: nix run path:.#treefmt -- modules/browsers/brave-origin/apps.nix nix eval path:.#nixosConfigurations.songbird.pkgs.brave-origin.version -> 1.95.101 nix eval path:.#nixosConfigurations.tpnix.pkgs.brave-origin.version -> 1.95.101 nix build path:.#nixosConfigurations.songbird.pkgs.brave-origin (substituted from cache.nixos.org) nix eval --raw path:.#nixosConfigurations.songbird.config.system.build.toplevel.drvPath nix eval --raw path:.#nixosConfigurations.tpnix.config.system.build.toplevel.drvPath
This PR introduces the
brave-originvariant and extracts a shared builder for Brave.brave: new, 1.92.144brave-origin: new, 1.92.144Brave Origin is a stripped-down build of the browser that drops the non-privacy extras (rewards, wallet, AI, etc.) while keeping Shields and the Chromium-based engine.
This is a continuation of #513143. To address @buckley310's concerns about the maintenance burden of nightly and beta versions, this new PR is strictly scoped to stable channels only. Since the
brave-originstable releases are tied directly to the standardbravestable releases, the maintenance overhead is effectively zero. As @buckley310 suggested, experimental beta/nightly channels are better suited for a separate flake or repository.All references to
betaandnightlychannels have been removed from the package and the update script.The shared builder lives outside
pkgs/by-name/becauseby-nameforbids cross-directory file references, which rules out sharing onemake-brave.nixacross multiple by-name packages. Layout follows thefirefox{,-esr-*}pattern.cc
cc package maintainers: @uskudnik, @JeffLabonte, @nasirhm, @buckley310
cc @Dreaming-Codes (author of #513143).
Things done
nix-build -A brave -A brave-origin)bravestore path is unchanged between master and the refactor commit../result/bin/brave{,-origin} --versionreports the correct channel name.nix-build lib/tests/maintainers.nix.nixfmton every touched.nixfile.nixpkgs-reviewon this PR.