Created
September 24, 2019 16:22
-
-
Save Pitometsu/48f7627f5602fd3908d58558fd3d58ea to your computer and use it in GitHub Desktop.
Nix overlay to override system compiler
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
(self: super: | |
let | |
stdenv = let stdenv = super.overrideCC super.stdenv super.gcc8; in | |
stdenv.override { cc = super.stdenv.cc; }; | |
in { | |
inherit stdenv; | |
}) | |
# stdenv = gcc8Stdenv.override { | |
# cc = gcc8Stdenv.override { | |
# inherit (self) libc; | |
# bintools = if super.stdenv.cc.bintools ? override then | |
# (super.stdenv.cc.bintools.override { | |
# inherit (self) libc; | |
# }) else super.stdenv.cc.bintools; | |
# }; | |
# }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment