Rules for importing a Go toolchain from Nixpkgs.
nixpkgs_go_configure(sdk_name, repository, repositories, attribute_path, nix_file, nix_file_deps, nix_file_content, nixopts, fail_not_supported, quiet, register, rules_go_repo_name)
Use go toolchain from Nixpkgs.
By default rules_go configures the go toolchain to be downloaded as binaries (which doesn't work on NixOS).
There is a way to tell rules_go to look into environment and find local go binary which is not hermetic.
This command allows to setup a hermetic go sdk from Nixpkgs, which should be considered as best practice.
Cross toolchains are declared and registered for each entry in the PLATFORMS
constant in rules_go
.
Note that the nix package must provide a full go sdk at the root of the package instead