github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/template.go (about)

     1  package nix
     2  
     3  import _ "embed"
     4  
     5  //go:embed tmpl.nix
     6  var pkgTmpl []byte
     7  
     8  type Archive struct {
     9  	URL, Sha string
    10  }
    11  
    12  type templateData struct {
    13  	Name         string
    14  	Version      string
    15  	Install      []string
    16  	PostInstall  []string
    17  	SourceRoot   string
    18  	SourceRoots  map[string]string
    19  	Archives     map[string]Archive
    20  	Description  string
    21  	Homepage     string
    22  	License      string
    23  	Platforms    []string
    24  	Inputs       []string
    25  	Dependencies []string
    26  }