URLForFlakeInput returns the input url to be used in a flake.nix file. This input can be used to import the package.
()
| 244 | // URLForFlakeInput returns the input url to be used in a flake.nix file. This |
| 245 | // input can be used to import the package. |
| 246 | func (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. |