MCPcopy Index your code
hub / github.com/jetify-com/devbox / NewDerivationBuilder

Function NewDerivationBuilder

internal/patchpkg/builder.go:54–60  ·  view source on GitHub ↗

NewDerivationBuilder initializes a new DerivationBuilder from the current Nix build environment.

()

Source from the content-addressed store, hash-verified

52// NewDerivationBuilder initializes a new DerivationBuilder from the current
53// Nix build environment.
54func NewDerivationBuilder() (*DerivationBuilder, error) {
55 d := &DerivationBuilder{}
56 if err := d.init(); err != nil {
57 return nil, err
58 }
59 return d, nil
60}
61
62func (d *DerivationBuilder) init() error {
63 if d.Out == "" {

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected