github.com/windmeup/goreleaser@v1.21.95/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  	Archives     map[string]Archive
    19  	Description  string
    20  	Homepage     string
    21  	License      string
    22  	Platforms    []string
    23  	Inputs       []string
    24  	Dependencies []string
    25  }