New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromium.enableWideVine does not build #26299

Open
moretea opened this Issue Jun 1, 2017 · 6 comments

Comments

Projects
None yet
5 participants
@moretea
Contributor

moretea commented Jun 1, 2017

Issue description

When setting chromium.enableWideVine = true in ~/.nixpkgs/config.nix,

Steps to reproduce

  1. Set chromium.enableWideVine = true in ~/.nixpkgs/config.nix,
  2. nix-env -u chromium

Output log:

[maarten@maarten-laptop:~]$ nix-env -i chromium
warning: name collision in input Nix expressions, skipping ‘/home/maarten/.nix-defexpr/channels_root/nixos’
replacing old ‘chromium-58.0.3029.110’
installing ‘chromium-58.0.3029.110’
these derivations will be built:
  /nix/store/2wnyw84bgi9fi24yw3djnf7vxbb6j8ma-chromium-58.0.3029.110.drv
  /nix/store/dcp02yxms8y02yz8wrb58ypvq8sf0253-chromium-binary-plugin-widevine.drv
  /nix/store/dvpfi6j90advgvwkkma5qdixqw22b008-chromium-58.0.3029.110.drv
building path(s) ‘/nix/store/hycrmcxqayl6rdka8qzhhkppglnzyghg-chromium-58.0.3029.110-sandbox’, ‘/nix/store/iwj7apjzn4ibh8hmk5m6gx6mpcx246y9-chromium-58.0.3029.110’
building path(s) ‘/nix/store/59wp59dc5fsawv8bfmibb9wcwmbhd13l-chromium-binary-plugin-widevine’
unpacking sources
unpacking source archive /nix/store/sjkrivkdyfxh8l8vr8vqij39sc93kwzz-google-chrome-stable_58.0.3029.110-1_amd64.deb
unpacking sources
unpacking source archive /nix/store/3wjzmkl1gh8417alzc4w3nl9yq2dwflr-chromium-58.0.3029.110.tar.xz
source root is plugins
setting SOURCE_DATE_EPOCH to timestamp 1494304666 of file plugins/libwidevinecdmadapter.so
patching sources
installing
install: creating directory '/nix/store/59wp59dc5fsawv8bfmibb9wcwmbhd13l-chromium-binary-plugin-widevine'
install: creating directory '/nix/store/59wp59dc5fsawv8bfmibb9wcwmbhd13l-chromium-binary-plugin-widevine/lib'
'libwidevinecdm.so' -> '/nix/store/59wp59dc5fsawv8bfmibb9wcwmbhd13l-chromium-binary-plugin-widevine/lib/libwidevinecdm.so'
'libwidevinecdmadapter.so' -> '/nix/store/59wp59dc5fsawv8bfmibb9wcwmbhd13l-chromium-binary-plugin-widevine/lib/libwidevinecdmadapter.so'
running tests
	libglib-2.0.so.0 => not found
	libnss3.so => not found
	libnssutil3.so => not found
	libnspr4.so => not found
	libglib-2.0.so.0 => not found
	libnss3.so => not found
	libnssutil3.so => not found
	libnspr4.so => not found
builder for ‘/nix/store/dcp02yxms8y02yz8wrb58ypvq8sf0253-chromium-binary-plugin-widevine.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/dvpfi6j90advgvwkkma5qdixqw22b008-chromium-58.0.3029.110.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/dvpfi6j90advgvwkkma5qdixqw22b008-chromium-58.0.3029.110.drv’ failed

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
17.09pre106916.c5badb123a (Hummingbird)
  • Nix version: (run nix-env --version)
nix-env (Nix) 1.11.9
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    "17.09pre106916.c5badb123a"

  • Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)

[maarten@maarten-laptop:~]$ grep build-use-sandbox /etc/nix/nix.conf
build-use-sandbox = true
@bjornfor

This comment has been minimized.

Show comment
Hide comment
@bjornfor

bjornfor Jun 1, 2017

Contributor

I was going to say "duplicate of #22333", but the build error is different.

Contributor

bjornfor commented Jun 1, 2017

I was going to say "duplicate of #22333", but the build error is different.

@moretea

This comment has been minimized.

Show comment
Hide comment
@moretea

moretea Jun 1, 2017

Contributor

I have created a patch that allows chromium to build, it's just taking ages...

Contributor

moretea commented Jun 1, 2017

I have created a patch that allows chromium to build, it's just taking ages...

@clhodapp

This comment has been minimized.

Show comment
Hide comment
@clhodapp

clhodapp Jun 9, 2017

This looks just like the error I got when I tried locally to get Chromium building under a stdenv with the patchelf from the head of master (with the fixes @edolstra references in #22333). I guess upstream Chrome are publishing valid Widevine ELFs again, but the dependency set has changed (grown). And yeah, it's shocking how long Chromium takes to build. I wonder if #22333 should be closed in favor of this issue...

clhodapp commented Jun 9, 2017

This looks just like the error I got when I tried locally to get Chromium building under a stdenv with the patchelf from the head of master (with the fixes @edolstra references in #22333). I guess upstream Chrome are publishing valid Widevine ELFs again, but the dependency set has changed (grown). And yeah, it's shocking how long Chromium takes to build. I wonder if #22333 should be closed in favor of this issue...

@moretea

This comment has been minimized.

Show comment
Hide comment
@moretea

moretea Jun 9, 2017

Contributor

The patch I linked to did not solve the problem, Netflix still complained about not being able to play DRM content.

Contributor

moretea commented Jun 9, 2017

The patch I linked to did not solve the problem, Netflix still complained about not being able to play DRM content.

jemilsson added a commit to jemilsson/nixos-configuration that referenced this issue Jul 23, 2017

@NickHu

This comment has been minimized.

Show comment
Hide comment
@NickHu

NickHu Jul 27, 2017

Contributor

@moretea I tried your patch, and it solved the problem for Spotify at least, which also wants widevine.

That being said, the build time on Chromium is unholy...

For others who might experience this problem too, Google Chrome has WideVine built in and works fine on NixOS as of now.

Contributor

NickHu commented Jul 27, 2017

@moretea I tried your patch, and it solved the problem for Spotify at least, which also wants widevine.

That being said, the build time on Chromium is unholy...

For others who might experience this problem too, Google Chrome has WideVine built in and works fine on NixOS as of now.

@domenkozar

This comment has been minimized.

Show comment
Hide comment
@domenkozar

domenkozar Jul 13, 2018

Member

@moretea how come your patch was never PR'd? :)

Member

domenkozar commented Jul 13, 2018

@moretea how come your patch was never PR'd? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment