Commit Graph

75 Commits

Author SHA1 Message Date
zendo
2c106c1e7c
google-chrome: Support GTK 4 (#218572)
Same as #217144 (04b1a12a6e) but for Google Chrome.
Relevant when launching Chrome with `--gtk-version=4`.
2023-02-27 23:50:50 +01:00
Felix Buehler
cdb39a86e0 treewide: use optionalString 2023-02-13 21:52:34 +01:00
Shawn8901
0a1dd3ced1 treewide: remove global with lib; in pkgs/{misc,networking} 2023-01-24 17:29:20 +01:00
Paul Grandperrin
aeaeca819d NIXOS_OZONE_WL: fix wayland window decorations 2022-09-28 15:56:55 +02:00
Stefan Radziuk
1be806f07f
google-chrome: add commandLineArgs after wayland flags (#189199) 2022-09-02 00:31:31 +02:00
Emery Hemingway
b5526585c2 treewide: inject xdg-open into wrappers as $PATH suffix
The xdg-open utility is only ever a runtime dependency and its
dependents only expect that it accept a URI as a command line
argument and do something with it that the user would expect.
For such as a trivial relationship it should be possible for
users to override xdg-open with something else in their PATH.
2022-08-19 13:11:27 -05:00
FliegendeWurst
76b1ca1c35 google-chrome: mark meta.sourceProvenance 2022-06-13 18:55:15 +08:00
Sandro Jäckel
60c4482872
google-chrome: remove legacy ? null 2022-04-30 02:40:42 +02:00
FliegendeWurst
3b0e22f1e7 google-chrome: remove gconf dependency 2022-02-11 15:02:33 +01:00
Brandon Weeks
4ec7d05099
google-chrome: passthrough CHROME_WRAPPER environment variable
The XDG desktop menu entries created by Chrome for Progressive Web Apps
are currently broken due to Exec being set to the path of the upstream
Chrome wrapper instead of the Nixpkgs wrapper. This causes Chrome to
crash becaues LD_LIBRARY_PATH is not set.

Chrome obtains the path to be included in the menu entry from the
CHROME_WRAPPER environment variable, which is currently set by the
upstream wrapper to its own path. By setting the variable to the path of
the Nixpkgs wrapper instead, launching PWAs works as expected.

https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/shell_integration_linux.cc
https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/common/wrapper
2022-02-06 20:21:37 +01:00
Michael Weiss
20926eb660
google-chrome: reland: add /run/opengl-driver/share/vulkan/icd.d/ to path
This change is part of 007af34263 but got accidentally reverted in
b2eb5f62a7. It is required for Vulkan support.
2022-01-31 19:16:47 +01:00
Wout Mertens
b2eb5f62a7 wayland: enable ozone via $NIXOS_OZONE_WL
Chrome, Chromium, VSCode, Slack, Signal, Discord, element-desktop,
schildichat.

For the latter two, the feature flag useWayland was removed and a
wrapper script was provided.
2022-01-27 09:46:36 +01:00
Brandon Weeks
007af34263 google-chrome: add /run/opengl-driver/share/vulkan/icd.d/ to path
NixOS stores ICDs at /run/opengl-driver/share/vulkan/icd.d/. Because
Chrome ships its own vulkan-loader and doesn't use the NixOS system
vulkan-loader, Chrome won't search the /run/opengl-driver directory
withou either adding it to the path or patching Chrome's libvulkan.so.1.

This change adds "${addOpenGLRunpath.driverLink}/share" unconditionally
to the path. addOpenGLRunpath is the same module that NixOS system
vulkan-loader uses as the path.

Tested by running `VK_LOADER_DEBUG=all google-chrome-unstable
--enable-features=Vulkan` and verifying Vulkan is enabled with
chrome://gpu.
2022-01-21 21:30:51 -08:00
Brandon Weeks
c3e8270c3a
google-chrome: fix hardware acceleration on Wayland (#155447)
Fix #103049.
2022-01-19 20:50:11 +01:00
Brian McGee
234c7cf431
google-chrome: add pre and post install hooks
This makes it easier to override the derivation
2021-12-23 16:43:01 +00:00
José Luis Lafuente
29efb76ab6
google-chrome: add pipewire dependency
chromium derivation already depends on pipewire. This is required to
share your screen on wayland
2021-09-25 11:32:58 +02:00
Michael Weiss
88336eea95
google-chrome-dev: Fix the build
crashpad_handler was renamed to chrome_crashpad_handler.
2021-08-20 13:48:53 +02:00
Luke Granger-Brown
51d83077ff google-chrome: avoid crash under some situations
If our Chrome derivation is Vulkan enabled, the Chrome GPU process
reliably crashes for me under M92 using the proprietary Nvidia drivers.
This is because the PCI-based GPU detection path fails, and we attempt
to use the Vulkan fallback instead, which then crashes(!!)

Including libpci allows us to use Angle's
src/gpu_info_util/SystemInfo_libpci.cpp path instead, which doesn't
crash, unlike src/gpu_info_util/SystemInfo_vulkan.cpp.
2021-07-25 08:53:56 +01:00
AndersonTorres
e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
Jan Tojnar
468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00
Samuel Gräfenstein
c9d89c2f55
google-chrome-dev: fix error on startup
Fix `[..]/crashpad_handler: No such file or directory`.
2021-04-30 14:54:55 +02:00
Samuel Gräfenstein
a4895f7183
google-chrome*: add meta.mainProgram 2021-04-29 14:51:41 +02:00
Sandro Jäckel
dcb501f993
kerberos: deprecate alias 2021-04-04 03:18:56 +02:00
Julien Langlois
2fad2f2d68
google-chrome: add vulkan support 2021-03-13 12:35:20 +01:00
Julien Langlois
ed0d586941
google-chrome: add libva support
Chrome cannot do hardware video acceleration without libva in its search
path. This just adds libva. Tested against a VP9 video looking at
chrome://media-internals and intel_gpu_top.
2021-03-13 12:35:18 +01:00
Ben Siraphob
a6ac3eedbd treewide: xdg_utils -> xdg-utils 2021-02-01 15:05:09 +07:00
Michael Weiss
04da763965
google-chrome-dev: Add the new libxshmfence dependency
This is required to launch newer versions of Google Chrome:
/nix/store/XXX-google-chrome-dev-89.0.4385.0/share/google/chrome-unstable/google-chrome-unstable:
error while loading shared libraries: libxshmfence.so.1: cannot open
shared object file: No such file or directory
2021-01-16 20:36:21 +01:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
Michael Weiss
b20cd4113f
google-chrome: Cleanup old conditionals 2020-11-29 12:30:50 +01:00
msteen
f98df98db3
google-chrome: Remove msteen from the list of maintainers (#105152) 2020-11-27 16:44:59 +01:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Michael Weiss
a90362c888
google-chrome: Add myself as maintainer
Mainly to get pinged on PRs/issues as well.
2020-10-29 13:41:34 +01:00
Michael Weiss
1350c410f6
Merge pull request #97201 from colemickens/google-chrome-ozone
google-chrome: add libxkbcommon+wayland for ozone/wayland
2020-09-12 12:22:05 +02:00
Cole Mickens
9eaddfda7f
google-chrome: add libxkbcommon+wayland for ozone/wayland 2020-09-12 12:17:33 +02:00
Alyssa Ross
de69b705d2 chromium: replace update.nix with Python impl
update.nix was a huuuuge hack, abusing checksum collisions, etc., and
was extremely difficult to read and maintain, especially because
values from update.nix were also used in the derivations themselves!

I've replaced this with an implementation in Python, which I chose for
readability.  Rather than generating Nix, I chose to
generate JSON, since Python can do that in the standard library and
Nix can read it.

I also set update.py as an updateScript, so Chromium can now
automatically be updated!

Fixes: https://github.com/NixOS/nixpkgs/issues/89635
2020-09-05 11:20:13 +02:00
Samuel Gräfenstein
9b06980c61
google-chrome-{beta,dev}: fix icons (#95389)
The icon naming scheme for Chrome Beta/Dev has changed from
`product_logo_{res}.png` to `product_logo_{res}_{branch}.png`.
2020-08-21 20:39:05 +02:00
Michael Weiss
f05b67ec83
google-chrome: Fix the EGL backend 2020-07-15 15:31:02 +02:00
Graham Christensen
e8ddc0cfa7
google-chrome: add coreutils to PATH
google-chrome-stable can't run without coreutils in PATH
2020-06-17 08:32:34 -04:00
Michael Weiss
16477d764f
google-chrome-{beta,dev}: Fix one substituteInPlace pattern 2020-04-16 13:39:07 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Michael Weiss
67f349d224
google-chrome*: Add the newly required dependencies
See 3fadc45499. Since the beta channel is now also on 81 and the stable
channel will be on 81 soon, it makes sense to already add this
unconditionally for all channels.
2020-02-15 19:55:03 +01:00
Michael Weiss
3fadc45499
google-chrome-dev: Add the newly required dependencies
google-chrome-unstable won't launch without the following shared object
files: libdrm.so.2 and libgbm.so.1.
2020-02-14 00:37:05 +01:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
worldofpeace
b1bc0645ea gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
Jan Tojnar
606ceda352
gnome3: stop using aliases 2019-02-14 02:31:15 +01:00
Cole Mickens
45fd44c66d google-chrome-dev: add at-spi2-core dependency 2018-11-02 02:01:51 -07:00
Will Dietz
776e6da544 google-chrome: fix native inputs, otherwise uses wrong patchelf 2018-09-28 11:43:16 -05:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthew Bauer
76999cc40e treewide: remove aliases in nixpkgs
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases =
true;}'’ work in Nixpkgs.

Misc...

- qtikz: use libsForQt5.callPackage

  This ensures we get the right poppler.

- rewrites:

  docbook5_xsl -> docbook_xsl_ns
  docbook_xml_xslt -> docbook_xsl

diffpdf: fixup
2018-07-18 23:25:20 -04:00
volth
96ebf614ad chromium, google-chrome: fix escaping of commandLineArgs 2018-03-06 14:56:07 +00:00