query
On this page

repoRevToName

lib.sources.repoRevToName

Docs pulled from | This Revision | about 1 hour ago


"full" -> name everything as "${repo}-${rev}-${fetcher}-source"


Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

repoRevToName =
    kind:
    # match on `kind` first to minimize the thunk
    if kind == "source" then
      (
        repo: rev: suffix:
        "source"
      )
    else if kind == "versioned" then
      (
        repo: rev: suffix:
        repoRevToNameFull repo rev null
      )
    else if kind == "full" then
      repoRevToNameFull
    else
      throw "repoRevToName: invalid kind";