nix develop
creates a shell containing the gomod2nix
tool.
nix develop
Running gomod2nix
creates the gomod2nix.toml
file required by the build process.
gomod2nix
Execute the build with nix build
.
nix build
Since we have each dependency as a distinct Nix store path, the SBOM output includes all of the Go modules, unlike buildGoModule
where it's just a blob of dependencies.
sbomnix . --buildtime