nixUnstable doesn't build with gcc10

Created on 23 Dec 2020  路  3Comments  路  Source: NixOS/nix

Describe the bug

nixUnstable doesn't build with gcc10.
Build output: https://termbin.com/ak42o

Steps To Reproduce

  1. get this pr https://github.com/NixOS/nixpkgs/pull/89793
  2. nix-build -A nixUnstable

Expected behavior

It should build

nix-env --version output
nix-env (Nix) 2.4pre20201201_5a6ddb3
Additional context

bug

All 3 comments

Can confirm, easy to repro here by swapping in gcc10Stdenv.

diff --git a/flake.nix b/flake.nix
index 9addccd63..f6b6a8474 100644
--- a/flake.nix
+++ b/flake.nix
@@ -115,7 +115,7 @@
       # 'nix.perl-bindings' packages.
       overlay = final: prev: {

-        nix = with final; with commonDeps pkgs; (stdenv.mkDerivation {
+        nix = with final; with commonDeps pkgs; (gcc10Stdenv.mkDerivation {
           name = "nix-${version}";
           inherit version;

gcc 10 is now in staging-next.

Was this page helpful?
0 / 5 - 0 ratings