diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-04-22 16:22:56 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-07-05 03:32:16 -0700 |
commit | 53af611dd20722f52302fc9efc298eb46684093c (patch) | |
tree | 483763c5516fc98c4c0f4a4911f7415584af72f1 /pkgs/applications/networking/browsers/chromium/default.nix | |
parent | c25897c1f327ebba6f73ef7ed6b9b6c93a2f3101 (diff) |
chromium: invoke ungoogled-chromium via buildPackages
ungoogled-chromium is, contrary to its name, not a build of
chromium. It is a patched copy of chromium's *source
code*. Therefore, it needs to come from pkgsBuildBuild, because it
contains python scripts which get /nix/store/.../bin/python3 patched
into their shebangs.
Diffstat (limited to 'pkgs/applications/networking/browsers/chromium/default.nix')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index cb77883601cd..d39b52809ed2 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -17,6 +17,7 @@ , pulseSupport ? config.pulseaudio or stdenv.isLinux , commandLineArgs ? "" , pkgsBuildTarget +, pkgsBuildBuild }: let @@ -61,7 +62,12 @@ let inherit channel chromiumVersionAtLeast enableWideVine ungoogled; }; - ungoogled-chromium = callPackage ./ungoogled.nix {}; + # ungoogled-chromium is, contrary to its name, not a build of + # chromium. It is a patched copy of chromium's *source code*. + # Therefore, it needs to come from buildPackages, because it + # contains python scripts which get /nix/store/.../bin/python3 + # patched into their shebangs. + ungoogled-chromium = pkgsBuildBuild.callPackage ./ungoogled.nix {}; }; pkgSuffix = if channel == "dev" then "unstable" else |