javascript.Environment
import type { javascript } from "https://garn.io/ts/v0.0.16/environment.ts";
const { Environment } = javascript;
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;
setup: NixExpression;
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;
setup: NixExpression;
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;
}