Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created February 26, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/90b2e0d055360f812ea2b24a2d6d0c5e to your computer and use it in GitHub Desktop.
Save cleverca22/90b2e0d055360f812ea2b24a2d6d0c5e to your computer and use it in GitHub Desktop.
[root@amd-nixos:~]# cat nixcfg/chrome-fix.nix
{ 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/
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment