Home Explore Blog 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
17ecd9ec (1st chunk of `src/nix/flake-clone.md`)
Title: Cloning and Building a Flake
Summary
This section provides an example of how to clone and build a flake using `nix flake clone` and `nix build` commands. It describes how to obtain the source code of a flake from its URL and then build it.