Build applies patches to a package store path and puts the result in the d.Out directory.
(ctx context.Context, pkgStorePath string)
| 93 | // Build applies patches to a package store path and puts the result in the |
| 94 | // d.Out directory. |
| 95 | func (d *DerivationBuilder) Build(ctx context.Context, pkgStorePath string) error { |
| 96 | if err := d.init(); err != nil { |
| 97 | return err |
| 98 | } |
| 99 | |
| 100 | slog.DebugContext(ctx, "starting build to patch package", |
| 101 | "pkg", pkgStorePath, "glibc", d.Glibc, "out", d.Out) |
| 102 | return d.build(ctx, newPackageFS(pkgStorePath), newPackageFS(d.Out)) |
| 103 | } |
| 104 | |
| 105 | func (d *DerivationBuilder) build(ctx context.Context, pkg, out *packageFS) error { |
| 106 | // Create the derivation's $out directory. |
no test coverage detected