File tree Expand file tree Collapse file tree
tests/modules/programs/chromium Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 google-chrome-beta = "Google Chrome Beta" ;
1616 google-chrome-dev = "Google Chrome Dev" ;
1717 brave = "Brave Browser" ;
18+ brave-origin = "Brave Origin" ;
1819 vivaldi = "Vivaldi Browser" ;
1920 microsoft-edge = "Microsoft Edge" ;
2021 } ;
@@ -234,11 +235,13 @@ let
234235 google-chrome-beta = "Google/Chrome Beta" ;
235236 google-chrome-dev = "Google/Chrome Dev" ;
236237 brave = "BraveSoftware/Brave-Browser" ;
238+ brave-origin = "BraveSoftware/Brave-Origin" ;
237239 microsoft-edge = "Microsoft Edge" ;
238240 } ;
239241
240242 linuxDirs = {
241243 brave = "BraveSoftware/Brave-Browser" ;
244+ brave-origin = "BraveSoftware/Brave-Origin" ;
242245 } ;
243246
244247 configDir =
Original file line number Diff line number Diff line change 1+ { config , ... } :
2+ let
3+ extensionId = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ;
4+ in
5+ {
6+ programs . chromium = {
7+ enable = true ;
8+ package = config . lib . test . mkStubPackage {
9+ name = "brave-origin" ;
10+ } ;
11+ extensions = [
12+ {
13+ id = extensionId ;
14+ }
15+ ] ;
16+ } ;
17+
18+ nmt . script = ''
19+ assertFileContent \
20+ "home-files/.config/BraveSoftware/Brave-Origin/External Extensions/${ extensionId } .json" \
21+ ${ builtins . toFile "chromium-brave-origin-extension.json" (
22+ builtins . toJSON {
23+ external_update_url = "https://clients2.google.com/service/update2/crx" ;
24+ }
25+ ) }
26+ assertPathNotExists "home-files/.config/chromium/External Extensions/${ extensionId } .json"
27+ '' ;
28+ }
Original file line number Diff line number Diff line change 99}
1010// lib . optionalAttrs pkgs . stdenv . hostPlatform . isLinux {
1111 chromium-brave-package-routing-linux = ./brave-package-routing-linux.nix ;
12+ chromium-brave-origin-package-routing-linux = ./brave-origin-package-routing-linux.nix ;
1213 chromium-google-chrome-extensions-linux = ./google-chrome-extensions-linux.nix ;
1314 chromium-ungoogled-chromium-extensions-linux = ./ungoogled-chromium-extensions-linux.nix ;
1415}
You can’t perform that action at this time.
0 commit comments