Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created September 12, 2018 01:48
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 samueldr/81783ce7af4cb4243e1352d78ac39006 to your computer and use it in GitHub Desktop.
Save samueldr/81783ce7af4cb4243e1352d78ac39006 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {
overlays = [
(self: super: {
env6 = super.overrideCC super.stdenv self.gcc6;
})
];
};
in
pkgs.env6.mkDerivation {
name = "demo";
buildInputs = [pkgs.env6];
}
@samueldr
Copy link
Author

 ~/tmp/tmp 130 $ nix-shell 

[nix-shell:~/tmp/tmp]$ gcc --version
gcc (GCC) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment