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