Skip to content

Instantly share code, notes, and snippets.

@Pitometsu
Created September 24, 2019 16:22
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 Pitometsu/48f7627f5602fd3908d58558fd3d58ea to your computer and use it in GitHub Desktop.
Save Pitometsu/48f7627f5602fd3908d58558fd3d58ea to your computer and use it in GitHub Desktop.
Nix overlay to override system compiler
(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