1# User Guide (stack project)
3Here we will look into how to generate the `pkgs.nix` file for a
4`stack.yaml` project. For the full integration please see the [User
9With [nix-tools](https://github.com/input-output-hk/nix-tools) in
10`PATH`, we can simply run the following command on a stack project:
13stack-to-nix -o nix --stack-yaml stack.yaml
16This will produce a `nix/pkgs.nix` file that looks like the following:
19 resolver = "lts-12.17";
23 "o-clock" = hackage.o-clock."0.1.1".revisions.default;
26 my-package = ./my-package.nix;
33This file contains the stackage resolver, as well as set of extra
34packages. The extras specifies which `extra-deps` (here: o-clock-0.1.1)
35we wanted to add over the stackage snapshot, and what local
36packages we want (here: my-package).
38*If you came here from the [User Guide](/user-guide), go back and
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list