build
import { build } from "https://garn.io/ts/v0.0.20/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.19/nixpkgs.ts";
garn.build`
${pkgs.cowsay}/bin/cowsay moo > $out/moo
`;
§
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.19/nixpkgs.ts";
garn.build`
${pkgs.cowsay}/bin/cowsay moo > $out/moo
`;