[Nix-dev] GCC in pkgs.buildEnv.paths

Peter Simons simons at cryp.to
Sat May 24 22:18:57 CEST 2014


Hi Pavel,

please copy the following file to ~/.nixpkgs/config.nix

  { pkgs }:

  {
    packageOverrides = pkgs_:
    {
      test = pkgs.runCommand "test-nixpkgs-config" {} ''
        echo "system   nixpkgs path is: ${builtins.toString pkgs.path}"
        echo "override nixpkgs path is: ${builtins.toString pkgs_.path}"
      '';
    };
  }

and run:

  $ nix-env -p /tmp/test -iA test

On my system, both package sets refer to the same path, i.e. the output
is:

  system   nixpkgs path is: /home/simons/.nix-defexpr
  override nixpkgs path is: /home/simons/.nix-defexpr

What does it say on your system?

Best regards,
Peter



More information about the nix-dev mailing list