templates

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderBuildHook added in v1.2.1

func RenderBuildHook(params BuildHookParams) ([]byte, error)

func RenderNixConf added in v1.2.1

func RenderNixConf() ([]byte, error)

func RenderProfileNixyYAML added in v1.2.4

func RenderProfileNixyYAML(values ProfileNixyYAMLParams) ([]byte, error)

func RenderShellHook added in v1.2.1

func RenderShellHook(params ShellHookParams) ([]byte, error)

func RenderWorkspaceFlake

func RenderWorkspaceFlake(values *WorkspaceFlakeParams) ([]byte, error)

Types

type BuildHookParams added in v1.2.1

type BuildHookParams struct {
	ProjectDir  string
	BuildTarget string
	CopyPaths   []string
}

type ProfileNixyYAMLParams added in v1.2.4

type ProfileNixyYAMLParams struct {
	NixPkgsCommit string
}

type ShellHookParams added in v1.2.1

type ShellHookParams struct {
	OnShellEnter string
}

type URLPackage added in v1.2.3

type URLPackage struct {
	Name        string            `yaml:"name"`
	URL         string            `yaml:"url"`
	RenderedURL string            `yaml:"-"`
	Sha256      map[string]string `yaml:"sha256,omitempty"`
}

copy of pkg/nix.URLPackage

type WorkspaceFlakePackgeBuild added in v1.2.3

type WorkspaceFlakePackgeBuild struct {
	PackagesMap map[string][]string
	Paths       []string
}

type WorkspaceFlakeParams added in v1.2.3

type WorkspaceFlakeParams struct {
	NixPkgsDefaultCommit string
	NixPkgsCommits       []string

	PackagesMap  map[string][]string
	LibrariesMap map[string][]string
	URLPackages  []URLPackage

	WorkspaceDir string

	Builds map[string]WorkspaceFlakePackgeBuild

	OSArch string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL