Skip to content

gleam2nix cli

the gleam2nix cli tool is used for generating the gleam.nix file containing builds for each individual dependency in your project, ready for use in gleam2nix’s nix functions (eg. buildGleamApplication).

Terminal window
$ gleam2nix [output_path] [manifest_file]

all arguments to gleam2nix are optional.

  • output_path: where to write the generated nix code to. defaults to gleam.nix in the current directory.
  • manifest_file: the path to your gleam project’s manifest.toml. defaults to the one in the current directory (ie. ./manifest.toml)

output the generated nix code to a nix folder:

Terminal window
$ gleam2nix nix/gleam.nix

generate gleam.nix based on the contents of the manifest.toml in a subdirectory:

Terminal window
$ gleam2nix gleam.nix gleam_project/manifest.toml