Skip to content

GCC in packageOverrides #2817

@vcunat

Description

@vcunat

Unresolved discussion on ML: https://www.mail-archive.com/[email protected]/msg11889.html

  packageOverrides = pkgs_: with pkgs_; {
    testgcc2 = pkgs_.gcc;
  };
% nix-instantiate '<nixpkgs>' -A gcc
warning: you did not specify `--add-root'; the result might be removed by the garbage collector
/nix/store/993glmz6hxbld0ry81jwv7c3z7cgaz68-gcc-wrapper-4.8.2.drv

% nix-instantiate '<nixpkgs>' -A testgcc2
warning: you did not specify `--add-root'; the result might be removed by the garbage collector
/nix/store/41nacbfpr8jzsk3k03jjlqb2r2xis5gf-gcc-wrapper-4.8.2.drv

Note that regular packages in packageOverrides do NOT cause such problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions