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

Method URLForFlakeInput

internal/devpkg/package.go:246–252  ·  view source on GitHub ↗

URLForFlakeInput returns the input url to be used in a flake.nix file. This input can be used to import the package.

()

Source from the content-addressed store, hash-verified

244// URLForFlakeInput returns the input url to be used in a flake.nix file. This
245// input can be used to import the package.
246func (p *Package) URLForFlakeInput() string {
247 if err := p.resolve(); err != nil {
248 // TODO(landau): handle error
249 panic(err)
250 }
251 return p.installable.Ref.String()
252}
253
254// IsInstallable returns whether this package is installable. Not to be confused
255// with the Installable() method which returns the corresponding nix concept.

Callers 4

EqualsMethod · 0.95
HashFromNixPkgsURLMethod · 0.95
createFileMethod · 0.80
TestInputFunction · 0.80

Calls 1

StringMethod · 0.45

Tested by 1

TestInputFunction · 0.64