Created
February 26, 2018 20:18
-
-
Save cleverca22/90b2e0d055360f812ea2b24a2d6d0c5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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