Environment
import type { Environment } from "https://garn.io/ts/v0.0.19/mod.ts";
Environment
s define what files and tools are available to Executables
,
Check
s and development shells.
For example they can contain compilers and developer tools that you want to use on a project, but they may also define other things like environment variables that need to be set.
You can enter an Environment
with garn enter
.
type Environment = {
tag: "environment";
nixExpression: NixExpression;
sandboxSetup: NixExpression;
description?: string;
setDescription: (this: Environment, newDescription: string) => Environment;
withDevTools(devTools: Array<Package>): Environment;
shell(script: string): Executable;
shell(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Executable;
check(check: string): Check;
check(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Check;
build(build: string): Package;
build(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Package;
};§Type
§
{
[src]tag: "environment";
nixExpression: NixExpression;
sandboxSetup: NixExpression;
description?: string;
setDescription: (this: Environment, newDescription: string) => Environment;
withDevTools(devTools: Array<Package>): Environment;
shell(script: string): Executable;
shell(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Executable;
check(check: string): Check;
check(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Check;
build(build: string): Package;
build(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Package;
}