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

Method FlakeInstallable

internal/devpkg/package.go:312–317  ·  view source on GitHub ↗

FlakeInstallable returns a flake installable. The raw string must contain a valid flake reference parsable by ParseFlakeRef, optionally followed by an #attrpath and/or an ^output.

()

Source from the content-addressed store, hash-verified

310// a valid flake reference parsable by ParseFlakeRef, optionally followed by an
311// #attrpath and/or an ^output.
312func (p *Package) FlakeInstallable() (flake.Installable, error) {
313 if err := p.resolve(); err != nil {
314 return flake.Installable{}, err
315 }
316 return p.installable, nil
317}
318
319// urlForInstall is used during `nix profile install`.
320// The key difference with URLForFlakeInput is that it has a suffix of

Callers 6

flakeInputsFunction · 0.80
addInputMethod · 0.80
addDependencyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected