Layout on the file system - ktosiek/nix-dev GitHub Wiki

When working on a project with nix-dev, this is how your workspace will look like:

  • .nix-dev/ -- configuration and state of nix-dev

    • outs/ -- this is where the actual built packages are going to be installed to
      • m4xn5j5nkxrcg5wfmdkfnj4jrfs16f1y-hello-1.2.3/
      • 4xn5j5nkxrcg5wfmdkfnj4jrfs16f1ym-libhello-1.2.3/
    • dev.nix -- the nix-dev configuration (or a link to it)
  • hello/ -- package's source

  • libhello/ -- some other package

  • build/ -- some packages will get linked here to be available for testing

    • hello/
      • bin/hello
  • /nix/store/m4xn5j5nkxrcg5wfmdkfnj4jrfs16f1y-hello-1.2.3 -- link to $WORKSPACE/.nix-dev/outs/...-hello-1.2.3

  • /nix/store/4xn5j5nkxrcg5wfmdkfnj4jrfs16f1ym-libhello-1.2.3 -- link to $WORKSPACE/.nix-dev/outs/...-libhello-1.2.3