nix
No long description provided.
Installation
dagger install github.com/vito/daggerverse/nix@5a53a93aaa08e2caf02c249fe045ee0ae613c85e
Entrypoint
Return Type
Nix
Example
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
Name | Type | Default Value | Description |
---|---|---|---|
packages | [String ! ] ! | - | No description provided |
opts | PkgsOpts ! | - | No description provided |
Example
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
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