-
Notifications
You must be signed in to change notification settings - Fork 83
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
package '@go_sdk' outputs a single file which is not supported by rules_nixpkgs #419
Comments
Thanks for reporting this @edjubert. |
This error is a bit misleading:
It suggests that Using some
I'm afraid I'm not familiar enough with |
Hi. I think this is a problem because you're trying to call nix inside of nix:
This is usually not supported, as the nix sandbox will not allow you to do that. You might get away with it by disabling the sandbox. An alternative approach would be to let nix provide all the tooling (ie. go SDK, C compiler) and inside the nix sandbox just use non-nix toolchain resolution. Yet another thing you could look into is to use the experimental recursive nix support. See NixOS/nix#3205 and NixOS/nix#13 |
Describe the bug
I'm trying to create a project with Nix, Bazel and Go.
I've setup the project with a
flake.nix
that call apackage.nix
file with:An error occur on every
x86_64-linux
I've tried (nix on Ubuntu and nixOS if that matter) but runs without error onaarch64-darwin
.When I build it with
nix build
it returns me this error:This is the output of
nix log /nix/store/nrn95lki35l99x1skqhya2lqgk8d6pzn-nixbazelgotemplate-deps.tar.gz.drv
To Reproduce
I created a repository with the project setup and a description of the error (same as above)
https://github.com/edjubert/nix-bazel-go-template
Expected behavior
A clear and concise description of what you expected to happen.
Environment
The text was updated successfully, but these errors were encountered: