git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: softlink system nodejs into third_party

somehow, the build seems to have changed with chromium 58, to not auto download the node binary. It is needed to generate webui files and we can substitute our own.

commit1fe7bd9ed6a5dd780e4991241b75fc0640576b2b authorHerwig Hochleitner <herwig@bendlas.net> dateSun 14 May 2017, 15:03 (10 years ago) parentbafcf42
1 file changed+5−2
pkgs/applications/networking/browsers/chromium/common.nix+5−2
pkgs/applications/networking/browsers/chromium/common.nix+5−2
@@ -1,4 +1,4 @@
1−{ stdenv, ninja, which
1+{ stdenv, ninja, which, nodejs
22
33# default dependencies
44, bzip2, flac, speex, libopus
@@ -87,7 +87,7 @@ let
8787
8888 nativeBuildInputs = [
8989 ninja which python2Packages.python perl pkgconfig
90− python2Packages.ply python2Packages.jinja2
90+ python2Packages.ply python2Packages.jinja2 nodejs
9191 ];
9292
9393 buildInputs = defaultDependencies ++ [
@@ -131,6 +131,9 @@ let
131131 }' gpu/config/gpu_control_list.cc
132132
133133 patchShebangs .
134+ # use our own nodejs
135+ mkdir -p third_party/node/linux/node-linux-x64/bin
136+ ln -s $(which node) third_party/node/linux/node-linux-x64/bin/node
134137 '' + optionalString (versionAtLeast version "52.0.0.0") ''
135138 sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
136139 third_party/pdfium/xfa/fxbarcode/utils.h