···16, cupsSupport ? true
17, pulseSupport ? config.pulseaudio or stdenv.isLinux
18, commandLineArgs ? ""
00019}:
2021let
22- llvmPackages = llvmPackages_16;
23- stdenv = llvmPackages.stdenv;
0002425 upstream-info = (import ./upstream-info.nix).${channel};
26···42 callPackage = newScope chromium;
4344 chromium = rec {
45- inherit stdenv llvmPackages upstream-info;
4647 mkChromiumDerivation = callPackage ./common.nix ({
48 inherit channel chromiumVersionAtLeast versionRange;
···60 inherit channel chromiumVersionAtLeast enableWideVine ungoogled;
61 };
6263- ungoogled-chromium = callPackage ./ungoogled.nix {};
0000064 };
6566 pkgSuffix = if channel == "dev" then "unstable" else
···209210 export XDG_DATA_DIRS=$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH\''${XDG_DATA_DIRS:+:}\$XDG_DATA_DIRS
2110212 # Mainly for xdg-open but also other xdg-* tools (this is only a fallback; \$PATH is suffixed so that other implementations can be used):
213 export PATH="\$PATH\''${PATH:+:}${xdg-utils}/bin"
0214215 .
216 w
···16, cupsSupport ? true
17, pulseSupport ? config.pulseaudio or stdenv.isLinux
18, commandLineArgs ? ""
19+, pkgsBuildTarget
20+, pkgsBuildBuild
21+, pkgs
22}:
2324let
25+ # Sometimes we access `llvmPackages` via `pkgs`, and other times
26+ # via `pkgsFooBar`, so a string (attrname) is the only way to have
27+ # a single point of control over the LLVM version used.
28+ llvmPackages_attrName = "llvmPackages_16";
29+ stdenv = pkgs.${llvmPackages_attrName}.stdenv;
3031 upstream-info = (import ./upstream-info.nix).${channel};
32···48 callPackage = newScope chromium;
4950 chromium = rec {
51+ inherit stdenv llvmPackages_attrName upstream-info;
5253 mkChromiumDerivation = callPackage ./common.nix ({
54 inherit channel chromiumVersionAtLeast versionRange;
···66 inherit channel chromiumVersionAtLeast enableWideVine ungoogled;
67 };
6869+ # ungoogled-chromium is, contrary to its name, not a build of
70+ # chromium. It is a patched copy of chromium's *source code*.
71+ # Therefore, it needs to come from buildPackages, because it
72+ # contains python scripts which get /nix/store/.../bin/python3
73+ # patched into their shebangs.
74+ ungoogled-chromium = pkgsBuildBuild.callPackage ./ungoogled.nix {};
75 };
7677 pkgSuffix = if channel == "dev" then "unstable" else
···220221 export XDG_DATA_DIRS=$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH\''${XDG_DATA_DIRS:+:}\$XDG_DATA_DIRS
222223+ '' + lib.optionalString (!xdg-utils.meta.broken) ''
224 # Mainly for xdg-open but also other xdg-* tools (this is only a fallback; \$PATH is suffixed so that other implementations can be used):
225 export PATH="\$PATH\''${PATH:+:}${xdg-utils}/bin"
226+ '' + ''
227228 .
229 w