Home Explore Blog Models CI



nix

src/nix/flake-clone.md
0990cf35965f3d542c3ae7381941ca6da4a06731de684f32000000030000013a
R""(

# Examples

* Check out the source code of the `dwarffs` flake and build it:

  ```console
  # nix flake clone dwarffs --dest dwarffs
  # cd dwarffs
  # nix build
  ```

# Description

This command performs a Git or Mercurial clone of the repository
containing the source code of the flake *flake-url*.

)""

Chunks
6d015a64 (1st chunk of `src/nix/flake-clone.md`)
Title: Nix Flake Cloning: Examples and Description
Summary
This chunk provides an example of how to clone and build a Nix flake named `dwarffs` using the `nix flake clone` command. It then describes the `nix flake clone` command as a tool for performing Git or Mercurial clones of the source code repository for a given flake URL.