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

Method inputRelativeAttrPath

internal/shellgen/flake_plan.go:234–241  ·  view source on GitHub ↗

inputRelativeAttrPath joins the package's corresponding flake input with its attribute path.

(pkg *devpkg.Package)

Source from the content-addressed store, hash-verified

232// inputRelativeAttrPath joins the package's corresponding flake input with its
233// attribute path.
234func (g *glibcPatchFlake) inputRelativeAttrPath(pkg *devpkg.Package) (string, error) {
235 relAttrPath, err := g.systemRelativeAttrPath(pkg)
236 if err != nil {
237 return "", err
238 }
239 atrrPath := strings.Join([]string{"pkgs", pkg.FlakeInputName(), nix.System(), relAttrPath}, ".")
240 return atrrPath, nil
241}
242
243// TODO: this only handles the first store path, but we should handle all of them
244func (g *glibcPatchFlake) fetchClosureExpr(pkg *devpkg.Package) (string, error) {

Callers 2

addOutputMethod · 0.95
addDependencyMethod · 0.95

Calls 3

SystemFunction · 0.92
FlakeInputNameMethod · 0.80

Tested by

no test coverage detected