-
Notifications
You must be signed in to change notification settings - Fork 37
Description
I'd like to put provenance information in a couple of places ('generated from revision $FOO in repository $BAR', that sort of thing). It'd be handy if npins would provide source information somewhere alongside the actually fetched sources - just exposing it to Nix would be sufficient, because I can then massage it in to whatever form's needed.
I don't quite know what this would look like - would user code be expected to deal with the various different shapes of source information (as, e.g., a tarball doesn't have a rev associated with it, but a Git checkout does)? Though, presumably, users could hard-code which shapes they're using for which sources, and change them if they change the pins. There'd also be some concern about how this would be effectively exposing a new API surface, with associated backwards/forwards compatibility considerations (so, e.g., I don't think it'd make sense to just drop in raw entries from sources.json, but rather some cleaned-up stable format).