Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIX_CC and scalapb, this is probably more of a nix flake question #13

Open
dispalt opened this issue Jan 28, 2022 · 2 comments
Open

NIX_CC and scalapb, this is probably more of a nix flake question #13

dispalt opened this issue Jan 28, 2022 · 2 comments

Comments

@dispalt
Copy link

dispalt commented Jan 28, 2022

Hi there, I'm trying to use this in a nixos/nix container and it's mostly working great except one thing. scalapb.

Scalapb has some checks to use $NIX_CC/nix-support/dynamic-linker if it's available and it's not available in nix develop Any ideas how to work around this?

@rossabaker
Copy link
Member

You can add arbitrary packages with the packages attribute:

        devShell = pkgs.devshell.mkShell {
          imports = [ typelevel-nix.typelevelShell ];
          name = "my-project-shell";
          typelevelShell = {
            jdk.package = pkgs.jdk8;
          };
          packages = [ pkgs.hello ];
        };

But I'm not sure which package would set the NIX_CC environment. (I'm not on my Linux machine at the moment, and I see in the scalapb code, the feature only works there. Maybe pkgs.glibc?)

I wouldn't mind adding a configuration option for scalapb, if we can identify an easy way to make it work.

@coltfred
Copy link

coltfred commented Dec 6, 2022

I'm running into something similar. Adding glibc didn't set the NIX_CC env variable in nix develop. It does for nix shell.

As a nix noob, I don't know how to get it set it nix develop. Any hints on how to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants