()
| 327 | } |
| 328 | |
| 329 | func (p *Package) NormalizedDevboxPackageReference() (string, error) { |
| 330 | installable, err := p.FlakeInstallable() |
| 331 | if err != nil { |
| 332 | return "", err |
| 333 | } |
| 334 | if installable.AttrPath == "" { |
| 335 | return "", nil |
| 336 | } |
| 337 | installable.AttrPath = fmt.Sprintf("legacyPackages.%s.%s", nix.System(), installable.AttrPath) |
| 338 | installable.Outputs = "" |
| 339 | return installable.String(), nil |
| 340 | } |
| 341 | |
| 342 | // PackageAttributePath returns the short attribute path for a package which |
| 343 | // does not include packages/legacyPackages or the system name. |
no test coverage detected