Dagger
Search

nix

No long description provided.

Installation

dagger install github.com/vito/daggerverse/nix@5a53a93aaa08e2caf02c249fe045ee0ae613c85e

Entrypoint

Return Type
Nix
Example
dagger -m github.com/vito/daggerverse/nix@5a53a93aaa08e2caf02c249fe045ee0ae613c85e call \
func (m *myModule) example() *Nix  {
	return dag.
			Nix()
}
@function
def example() -> dag.Nix:
	return (
		dag.nix()
	)
@func()
example(): Nix {
	return dag
		.nix()
}

Types

Nix 🔗

pkgs() 🔗

Pkgs returns a container with the specified packages installed from nixpkgs.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
packages[String ! ] !-No description provided
optsPkgsOpts !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(packages []string, opts *NixPkgsOpts) *Container  {
	return dag.
			Nix().
			Pkgs(packages, opts)
}
@function
def example(packages: List[str], opts: dag.NixPkgsOpts) -> dagger.Container:
	return (
		dag.nix()
		.pkgs(packages, opts)
	)
@func()
example(packages: string[], opts: NixPkgsOpts): Container {
	return dag
		.nix()
		.pkgs(packages, opts)
}

pkgsTest() 🔗

PkgsTest runs a sanity check to ensure the module works as expected.

Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/nix@5a53a93aaa08e2caf02c249fe045ee0ae613c85e call \
 pkgs-test
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Nix().
			PkgsTest(ctx)
}
@function
async def example() -> None:
	return await (
		dag.nix()
		.pkgs_test()
	)
@func()
async example(): Promise<void> {
	return dag
		.nix()
		.pkgsTest()
}

PkgsOpts 🔗

nixpkgsRef() 🔗

Return Type
String !
Example
Function NixPkgsOpts.nixpkgsRef is not accessible from the nix module
Function NixPkgsOpts.nixpkgsRef is not accessible from the nix module
Function NixPkgsOpts.nixpkgsRef is not accessible from the nix module
Function NixPkgsOpts.nixpkgsRef is not accessible from the nix module