templates

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderBuildHook

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

func RenderNixConf

func RenderNixConf() ([]byte, error)

func RenderProfileNixyYAML

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

func RenderShellHook

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

func RenderWorkspaceFlake

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

Types

type BuildHookParams

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

type ProfileNixyYAMLParams

type ProfileNixyYAMLParams struct {
	NixPkgsCommit string
}

type ShellHookParams

type ShellHookParams struct {
	OnShellEnter string
}

type URLPackage

type URLPackage struct {
	Name        string `yaml:"name"`
	URL         string `yaml:"url"`
	Sha256      string `yaml:"sha256"`
	InstallHook string
	BinPaths    []string `yaml:"-"`
}

copy of pkg/nix.URLPackage

type WorkspaceFlakePackgeBuild

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

type WorkspaceFlakeParams

type WorkspaceFlakeParams struct {
	NixPkgsCommitsList []string
	NixPkgsCommitsMap  map[string]string

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

	WorkspaceDir string

	Builds map[string]WorkspaceFlakePackgeBuild

	OSArch string

	EnvVars map[string]string
}

Jump to

Keyboard shortcuts

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