Repository navigation
brave,brave-beta,brave-nightly,brave-origin-beta,brave-origin-nightly: share builder, init 1.90.114, 1.91.111, 1.91.110, 1.91.111 - #513143
Dreaming-Codes wants to merge 8 commits into
Conversation
… locais Brave Origin é uma variante do Brave que remove funcionalidades não relacionadas à privacidade (recompensas, carteira, IA, etc.), mantendo Shields e o motor Chromium. O upstream não publica canal stable para o Brave Origin; apenas beta (1.92.110) e nightly (1.93.10) estão disponíveis. O builder local em pkgs/brave-origin/make-brave-origin.nix é baseado no PR NixOS/nixpkgs#513143 (ainda não mesclado). Quando o PR for integrado ao nixpkgs, estes pacotes locais podem ser removidos e substituídos pelos pacotes oficiais no overlay. Co-authored-by: Copilot <[email protected]>
|
@Dreaming-Codes I tried building I think the assumption commented about diff --git a/pkgs/applications/networking/browsers/brave/make-brave.nix b/pkgs/applications/networking/browsers/brave/make-brave.nix
--- a/pkgs/applications/networking/browsers/brave/make-brave.nix
+++ b/pkgs/applications/networking/browsers/brave/make-brave.nix
@@ -129,9 +129,9 @@
appIdStem = "com.brave.Origin";
darwinStem = "Brave Origin";
changelogFile = "CHANGELOG_DESKTOP_ORIGIN.md";
- # origin keeps icons un-suffixed, because the parent directory already
- # encodes the channel.
- iconsCarryChannelSuffix = false;
+ # origin debs ship icons with the channel suffix in the filename, same
+ # as the browser flavor.
+ iconsCarryChannelSuffix = true;
homepages = {
beta = "https://brave.com/origin/download-beta/";
nightly = "https://brave.com/origin/download-nightly/";
|
Bad3r
left a comment
There was a problem hiding this comment.
Please address the conflict(s) and rebase
It has been fixed in the commit immediately after your commit |
hmm I wonder why ofborg-eval and nixpgs-review fail and report that the PR is unmergable: https://github.com/Bad3r/nixpkgs-review-gha/actions/runs/27089800176/job/79951140881 |
|
Brave Origin released |
Didn't know brave had a release index, updating the update.sh script to use that instead of scraping github releases |
Move the derivation out of pkgs/by-name/ and into a dedicated directory so beta, nightly and origin channels can reuse the same make-brave.nix without duplicating it. Behaviour is unchanged for the stable channel.
Parameterise make-brave.nix by release channel and add the beta and nightly variants. Both channels reuse the stable builder end-to-end and are picked up by the same update.sh.
Brave Origin is a stripped-down Brave variant (no rewards, wallet, AI, etc.) shipped only as beta and nightly. Add it through the shared make-brave.nix by introducing a flavor parameter.
|
Flake lock file updates:
• Updated input 'gep-dotfiles':
'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=30ca499f56508964824baae2d566aed31eb28bde' (2026-06-03)
→ 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=056c620db974e8d688e8d2897765c3a916620575' (2026-06-09)
• Updated input 'gep-dotfiles/nix-index-database':
'github:nix-community/nix-index-database/97df9dc0b7c924344b793a15c1e8e4522ebb854e' (2026-05-31)
→ 'github:nix-community/nix-index-database/1a2ea89c917781e88508d9fd2b507f2d2a0e173c' (2026-06-07)
• Added input 'gep-dotfiles/nixpkgs-patch-discord-fix-crash':
'NixOS/nixpkgs#523515'
• Updated input 'gep-dotfiles/nvim-gep':
'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=db6a742e78a2c6f3d0b776c6472448160f02db70' (2026-06-03)
→ 'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=301dc9d41a5b6dc5ff0c46a3af8c8c60bb3c8e22' (2026-06-07)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly':
'github:nix-community/neovim-nightly-overlay/7a243cca59f5d68838ac6510148a2f470053cb84' (2026-06-03)
→ 'github:nix-community/neovim-nightly-overlay/4b02dabdaac3d363ad7a86839c548fa4e32aad07' (2026-06-07)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly/neovim-src':
'github:neovim/neovim/13b2b1427578bec7714e1a14be44ca72ef18f379' (2026-06-02)
→ 'github:neovim/neovim/ec7dab077bf6bf53794f2bc42010c977687094a6' (2026-06-06)
• Updated input 'gep-dotfiles/nvim-gep/nixvim':
'github:nix-community/nixvim/b7521616f15ad73c6bec458d64ed7f06f4095edb' (2026-06-02)
→ 'github:nix-community/nixvim/4b98b6ae9c88b105dacd9fbf8712275b28077ff8' (2026-06-07)
• Updated input 'home-manager':
'github:nix-community/home-manager/f384af1bec6423a0d4ba1855917ab948f64e5808' (2026-06-02)
→ 'github:nix-community/home-manager/c58ead12efcac436afffa93a22099a5595eb4157' (2026-06-09)
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/4ed851c979641e28597a05086332d75cdc9e395f' (2026-06-01)
→ 'github:NixOS/nixos-hardware/32c2cd9e46286c4eced3dc6b613c659126bf3cca' (2026-06-09)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/331800de5053fcebacf6813adb5db9c9dca22a0c' (2026-05-31)
→ 'github:NixOS/nixpkgs/a799d3e3886da994fa307f817a6bc705ae538eeb' (2026-06-06)
• Updated input 'nur':
'github:nix-community/NUR/c234d9dc818cc927527bf8584b14c98060f96d47' (2026-06-03)
→ 'github:nix-community/NUR/9726e40699c42f4aa72e73dc6339d71e9a5dce10' (2026-06-09)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/c591bf665727040c6cc5cb409079acb22dcce33c' (2026-05-05)
→ 'github:Mic92/sops-nix/9ed65852b6257fbeae4355bc24ecfea307ca759a' (2026-06-04)
• Updated input 'ymstnt-dotfiles':
'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=8146b9f599b8f96ca8cf29b00cf8c21944dfba26' (2026-05-25)
→ 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=6a07fa84b09cdfe62d523aacbf4457fc1f2bc158' (2026-06-08)
• Added input 'ymstnt-dotfiles/nixpkgs-patch-brave':
'NixOS/nixpkgs#528170'
• Added input 'ymstnt-dotfiles/nixpkgs-patch-brave-origin':
'NixOS/nixpkgs#513143'
• Removed input 'ymstnt-dotfiles/nixpkgs-patch-brawe-origin'
• Removed input 'ymstnt-dotfiles/nixpkgs-patch-python-language-server-tests'
• Removed input 'ymstnt-dotfiles/nixpkgs-patch-python-lsp-server-test'
Co-authored-by: Gergő Gutyina <[email protected]>
Flake lock file updates:
• Updated input 'nixpkgs-patch-brave-origin':
'NixOS/nixpkgs#513143'
→ 'NixOS/nixpkgs#513143'
Flake lock file updates:
• Updated input 'gep-dotfiles':
'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=056c620db974e8d688e8d2897765c3a916620575' (2026-06-09)
→ 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=564ffc714a5519fbe196f78185d6aeb999b6604b' (2026-06-13)
• Updated input 'gep-dotfiles/nix-index-database':
'github:nix-community/nix-index-database/1a2ea89c917781e88508d9fd2b507f2d2a0e173c' (2026-06-07)
→ follows 'nix-index-database'
• Removed input 'gep-dotfiles/nix-index-database/nixpkgs'
• Removed input 'gep-dotfiles/nixpkgs-patch-discord-fix-crash'
• Updated input 'gep-dotfiles/nvim-gep':
'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=301dc9d41a5b6dc5ff0c46a3af8c8c60bb3c8e22' (2026-06-07)
→ 'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=36611e8c35563967ee311f5480e786eb1a9631b9' (2026-06-13)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly':
'github:nix-community/neovim-nightly-overlay/4b02dabdaac3d363ad7a86839c548fa4e32aad07' (2026-06-07)
→ 'github:nix-community/neovim-nightly-overlay/62f5f65a671a990fa809031d64379374e89ef225' (2026-06-13)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly/neovim-src':
'github:neovim/neovim/ec7dab077bf6bf53794f2bc42010c977687094a6' (2026-06-06)
→ 'github:neovim/neovim/400f2473972898ecfd89ac3c55222ace0cc248dd' (2026-06-12)
• Updated input 'gep-dotfiles/nvim-gep/nixvim':
'github:nix-community/nixvim/4b98b6ae9c88b105dacd9fbf8712275b28077ff8' (2026-06-07)
→ 'github:nix-community/nixvim/56f95d165580d4c814955798fa408c66d6843069' (2026-06-13)
• Updated input 'home-manager':
'github:nix-community/home-manager/c58ead12efcac436afffa93a22099a5595eb4157' (2026-06-09)
→ 'github:nix-community/home-manager/5b6f5733726a1b2ccafb5dec6ac4ca7299fad66c' (2026-06-13)
• Updated input 'moe':
'github:tchfoo/moe/170c6a3fbf9a4178a25945543a7ef6de5541a59d' (2026-05-12)
→ 'github:tchfoo/moe/81e723cff9d7fe96d942a4504bc6832d10af8c25' (2026-06-10)
• Updated input 'moe/nuget-packageslock2nix':
'github:mdarocha/nuget-packageslock2nix/d629f61009274fb4cd1fe9b24a30f9849251b25c' (2025-10-21)
→ 'github:mdarocha/nuget-packageslock2nix/17ec397cd003ade07f6254c421320774cbc4e58a' (2026-06-06)
• Added input 'nix-index-database':
'github:nix-community/nix-index-database/1a2ea89c917781e88508d9fd2b507f2d2a0e173c' (2026-06-07)
• Added input 'nix-index-database/nixpkgs':
follows ''
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/32c2cd9e46286c4eced3dc6b613c659126bf3cca' (2026-06-09)
→ 'github:NixOS/nixos-hardware/6358ff76821101c178e3ab4919a62799bfe3652e' (2026-06-11)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/a799d3e3886da994fa307f817a6bc705ae538eeb' (2026-06-06)
→ 'github:NixOS/nixpkgs/9ae611a455b90cf061d8f332b977e387bda8e1ca' (2026-06-10)
• Updated input 'nixpkgs-patch-nixos-nginx-add-build-time-syntax-validation':
'NixOS/nixpkgs#474858'
→ 'NixOS/nixpkgs#474858'
• Updated input 'nixpkgs-patcher':
'github:gepbird/nixpkgs-patcher/1035997b647799694e4ac1cf217e7ee1c050bce0' (2026-05-18)
→ 'github:gepbird/nixpkgs-patcher/5e3b493622367a11ead8d53134d2dd2be88bd168' (2026-06-13)
• Updated input 'nur':
'github:nix-community/NUR/9726e40699c42f4aa72e73dc6339d71e9a5dce10' (2026-06-09)
→ 'github:nix-community/NUR/058bd96c478835e243de857c4c0d585364eb2c2d' (2026-06-13)
• Updated input 'ymstnt-dotfiles':
'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=6a07fa84b09cdfe62d523aacbf4457fc1f2bc158' (2026-06-08)
→ 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=e0765931d41e6ca5e2c64d5e25a39ecef01b3eaa' (2026-06-12)
• Added input 'ymstnt-dotfiles/nix-index-database':
follows 'nix-index-database'
• Updated input 'ymstnt-dotfiles/nixpkgs-patch-brave-origin':
'NixOS/nixpkgs#513143'
→ 'NixOS/nixpkgs#513143'
|
I think adding brave-origin would be a good thing, and I like this approach now that the release is out and we can see both editions are being released at the same time, with the same process. I'm a little hesitant to add the beta and nightly editions, though. Origin has generated interest, but I haven't seen the same for beta and nightly. |
|
@buckley310 I'm relatively new to Nix, but that was one of the first things I wondered about, why there was no beta variant (as I use it usually on my non nix machines). So just speaking from my perspective, I would appreciate these packages (inkl. beta & nightly builds) (just to give it some voice, as no one so far spoke for these packages) |
I doubt we can keep up with the rapid pace of nightly/beta updates here in nixpkgs. |
Might be true, but ig often its not that important to get every night / beta build, but users often just want to see some coming features. So updating them each time with the standard package seems kinda reasonable to me. (meaning you get 1 version ahead with beta and 2 with nightly (based on the current brave gh release page)). And in regards of security, I doubt the security would be lacking this way, as if there is a critical fix, it will be backported to the stable version right away, meaning if you do the updates on every stable release, the security of beta and nightly would be similarly guaranteed (letting them jump to their respective newest release). |
|
this PR is moving brave OUT of pkgs/by-name , is that OK? |
Well there's a reason for that, read the PR body |
|
Can we move forward with this? It's been quite a while. |
|
Can't really tell if one of the maintainers is a committer, but I gonna repeat my concern of #511131 here as well just in case:
The silence in both mentioned and this PR kinda proves this point too |
Getting changes merged into nixpkgs is a real struggle. At this point I'm almost hoping a CVE turns up - at least then there'd be a reason to ping someone and finally land a PR, instead of waiting months on merge criteria that are never quite spelled out. And if this is what it's like for browsers, it's not hard to imagine how things go for less popular packages. |
A brave version update just got merged 9 hours ago, and I was just about to check for / create a PR for the new version that released today. So we have the CVEs covered. In the interest of moving things along, I'll be blunt. What I meant before, just didn't state as bluntly, is that I do not want the nightly and beta versions of brave merged. That's more stuff to upkeep, I will not ever use it, and it's probably going to end up being my problem if it goes wrong. Since the brave-origin-stable releases are tied directly to the brave-stable releases, that should be close to zero maintenance overhead, and I am okay with just adding that. I might even try using that version. edit: No offense intended to anyone who has worked, or will work on this package. People come and go, and that's fine. When i say it'll probably end up being my problem, It's just that I'm the one who's stuck it out the longest so far. I also appreciate that the PR comes with a new maintainer :) |
|
Thanks for writing up this PR. It was the starting point for rachalaraj's PR, which was just recently merged. If you are still interested in getting into the list of package maintainers and helping out with maintenance and stuff, just make another PR for it and ping me. |
|
I created a separate flake repo for the nightly + beta channels in case anyone is interested, using the |
Adds the beta and nightly channels of Brave, plus both channels of the new Brave Origin variant, on top of a shared builder so the five packages can be kept in sync from a single
update.sh.brave— unchanged (stable, 1.89.137)brave-beta— new, 1.90.114brave-nightly— new, 1.91.111brave-origin-beta— new, 1.91.110brave-origin-nightly— new, 1.91.111Brave 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. Upstream only publishes it on the beta and nightly tracks.
Supersedes #511131
This PR supersedes #511131 (which initialised
brave-originas a parallel copy ofpkgs/by-name/br/brave/) by folding both flavors — the regular browser and Origin — through a singlemake-brave.nixparameterised bychannelandflavor. That removes the maintenance tax of having two near-identical derivations and matches the suggestion@buckley310and@Bad3rraised on that thread. Thanks to@WitteShadovvfor the original work that informed the layout here.The shared builder lives outside
pkgs/by-name/because by-name forbids cross-directory file references, which rules out sharing onemake-brave.nixacross multiple by-name packages. Layout follows thefirefox{,-beta,-nightly,-devedition,-esr-*}pattern.cc
cc package maintainers: @uskudnik, @rht, @JeffLabonte, @nasirhm, @buckley310
cc @WitteShadovv (author of #511131).
Things done
nix-build -A brave -A brave-beta -A brave-nightly -A brave-origin-beta -A brave-origin-nightly)bravestore path is unchanged between master and the refactor commit../result*/bin/brave{,-beta,-nightly,-origin-beta,-origin-nightly} --versionreports the correct channel name.nix-build lib/tests/maintainers.nix.nixfmton every touched.nixfile.nixpkgs-reviewon this PR.