Home Explore Blog Models CI



nix

1st chunk of `src/nix/flake-clone.md`
6d015a64adaf06f7f6c66886d846ff1eddab310873f23e2b000000010000013a
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: 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.