Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "nix"
Type is the string value of the Target type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Artifact *Artifact Target *Target Logger logz.FieldLogger }
Action is the executor for installing a nix package
func (*Action) UseLogger ¶
func (a *Action) UseLogger(logger logz.FieldLogger)
UseLogger injects a logger into the target's action
type Artifact ¶
type Artifact struct { ark.RawArtifact `mapstructure:",squash"` Packages []string `json:"packages" mapstructure:"packages"` }
Artifact is the result of a successful nix.Produce() call
func (Artifact) Cacheable ¶
Cacheable returns true because a local nix store might have the package(s) installed, but remote caching checks will always return false
func (Artifact) LocallyCached ¶
LocallyCached queries the local nix store for the packages expressed in the target definition
type NxPkg ¶
type NxPkg struct { Name string `json:"name"` Pname string `json:"pname"` Version string `json:"version"` System string `json:"system"` }
NxPkg is a container for unmarshalled nix query responses
Click to show internal directories.
Click to hide internal directories.