Home Explore Blog CI



nix

1st chunk of `src/nix/flake-clone.md`
17ecd9ec19d1a5bd7fe900f9df2a00aede034c285e2a2c41000000010000013a
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*.

)""

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.