Commit Graph

67 Commits

Author SHA1 Message Date
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
Jan Tojnar
a31d98f312
tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
Joachim F
d5e342ee43
Merge pull request #33706 from catern/chromekerb
google-chrome: add dependency on kerberos
2018-02-17 10:35:25 +00:00
Spencer Baugh
4aab59165f google-chrome: remove "with" usage to simplify the expr
This "with" usage makes it trickier to track where the actual source
package of this derivation comes from. Remove that use of with to make
it a little easier to understand.
2018-01-25 20:59:39 +00:00
Spencer Baugh
413cb93e12 google-chrome: add dependency on kerberos
Without this, Chrome doesn't work with websites requiring Kerberos
authentication.
2018-01-25 20:56:33 +00:00
Andrew Slough
fa6c8beaab google-chrome: add new dep on at_spi2_atk
Fixes #32978
2017-12-26 00:55:11 +00:00
volth
6334a85cee google-chrome: meta.platforms "linux" -> "x86_64-linux"
i386-linux: broken
aarch64-linux: x86_64-linux version is installed
2017-12-06 07:52:17 +01:00
Charles Strahan
39fd944402 chrome: fix fallout from #26512
Fixes broken save dialogue (causes chrome to crash) and missing icons.
2017-06-16 14:40:28 -04:00
Volth
0370749209 google-chrome: remove dependency on gcc 2017-05-02 00:56:53 +00:00