...
stdenvGCC49 = pkgs.overrideCC mypkgs.stdenv mypkgs.gcc49;
milxview = callPackage ../imaging/libraries/milxview {
# Use gcc 4.9
stdenv = stdenvGCC49;
boost = mypkgs.boost.override { stdenv = stdenvGCC49; };
};
...
Hi Ashley,
It's because the pkgs.stdenv is replaced in the attribute set but the original one has already been passed to all the packages. Using an overlay will properly apply the change recursively (typing on mobile so no example for you :)
I think that your original method never really worked, you were lucky enough that both GCC versions were producing compatible results.
--
You received this message because you are subscribed to the Google Groups "nix-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nix-devel+...@googlegroups.com.
To post to this group, send email to nix-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nix-devel/fde1796c-27db-4df1-9598-2c92480a9acb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
A related question, can you apply an overlay to an already imported pkgs? My current technique re-imports <nixpks>.