cleverca22
6/11/2016 - 3:01 PM

gistfile1.txt

{ stdenv, chromium, makeWrapper, ... }:

stdenv.mkDerivation {
  name = "chrome-fix";
  buildInputs = [ makeWrapper ];
  phases = "installPhase";
  installPhase =
    ''
      makeWrapper ${chromium}/bin/chromium $out/bin/chromium --set LD_PRELOAD ""
      ln -sv $out/bin/chromium $out/bin/chromium-browser
      ln -sv ${chromium}/share $out/
    '';
}