nix

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package nix is the packer for Nix projects.

Index

Constants

View Source
const (
	// ConfigNixDockerPackage is the key for the package name of
	// `pkgs.dockerTools.buildImage` in the Nix configuration.
	//
	// For example, `packages.aarch64-linux.docker`.
	//
	// If not set, the default value is
	// `packages.<arch>-linux.{dockerImage|docker-image|docker|image|container}`.
	// where the first found package will be used.
	ConfigNixDockerPackage = "nix.docker_package"
)

Variables

This section is empty.

Functions

func FindPossibleNixDockerPackage

func FindPossibleNixDockerPackage(content string) string

FindPossibleNixDockerPackage finds the possible Nix package name for Docker.

func GenerateDockerfile

func GenerateDockerfile(meta types.PlanMeta) (string, error)

GenerateDockerfile generates the Dockerfile for Nix projects.

func NewIdentifier

func NewIdentifier() plan.Identifier

NewIdentifier returns a new Nix identifier.

func NewPacker

func NewPacker() packer.Packer

NewPacker returns a new Dotnet packer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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