Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

build

import { build } from "https://garn.io/ts/v0.0.19/mod.ts";

Creates a new Package, which will be built using the given shell script. It's run in the emptyEnvironment.

The build script should copy any artifacts that you want to keep in the Package into $out.

Example:

import * as pkgs from "https://garn.io/ts/v0.0.18/nixpkgs.ts";

garn.build`
  ${pkgs.cowsay}/bin/cowsay moo > $out/moo
`;
function build(s: string): Package;
function build(s: TemplateStringsArray, ...args: Array<NixStrLitInterpolatable>): Package;
function build(s: TemplateStringsArray | string, ...args: Array<NixStrLitInterpolatable>): Package;
§
build(s: string): Package
[src]

Creates a new Package, which will be built using the given shell script. It's run in the emptyEnvironment.

The build script should copy any artifacts that you want to keep in the Package into $out.

Example:

import * as pkgs from "https://garn.io/ts/v0.0.18/nixpkgs.ts";

garn.build`
  ${pkgs.cowsay}/bin/cowsay moo > $out/moo
`;

§Parameters

§
s: string
[src]

§Return Type

§
build(s: TemplateStringsArray, ...args: Array<NixStrLitInterpolatable>): Package
[src]

§Parameters

§
s: TemplateStringsArray
[src]
§
...args: Array<NixStrLitInterpolatable> optional
[src]

§Return Type

§
build(s: TemplateStringsArray | string, ...args: Array<NixStrLitInterpolatable>): Package
[src]

§Parameters

§
s: TemplateStringsArray | string
[src]
§
...args: Array<NixStrLitInterpolatable> optional
[src]

§Return Type