Commit Graph

10 Commits

Author SHA1 Message Date
Deniz Dogan 127e423397 Fix duplicate ${system} in flake tutorial (#1729)
When I followed this tutorial, my default package ended up as `packages.aarch64-darwin.aarch64-darwin.default`. Removing this "extra" `${system}` solves the problem, but admittedly I'm not 100% sure what's going on here.
2022-10-03 11:06:53 +13:00
Yvan Sraka 3c9acea8fe Fix #1581 & #1586: flake output attribute 'defaultPackage' and 'devShell' are deprecated (#1583)
Using 'packages.<system>.default' and 'devShells.<system>.default' instead
2022-08-18 08:01:52 +00:00
George Thomas a6ce303abb Fix typo (#1584)
Looks like a copy-paste error from the shell config above.
2022-08-11 00:10:15 +12:00
Hamish Mackenzie b1661f08e3 Update cache server in docs to cache.iog.io (#1481) 2022-05-24 17:30:13 +12:00
Stefan Frijters b4b6bd387d Fix links to troubleshooting Markdown pages (#1443) 2022-04-19 12:42:34 +12:00
Hamish Mackenzie 97b3a67789 Fix typo & comment out cross comp in eg. flake.nix (#1423) 2022-04-01 18:18:42 +13:00
Sridhar Ratnakumar fbbcda2d21 flakes tutorial: add buildInputs example (#1248)
Often I want to have non-haskell tools, like nixpkgs-fmt (used to format .nix files in IDE context), installed in the nix shell.
2021-09-27 19:12:03 +13:00
Hamish Mackenzie 19052d83fd Expose config.nix for flakes to use (#1238) 2021-09-15 23:00:14 +12:00
Hamish Mackenzie f279cdef5f Update the project modules and fix missing args param (#1144)
There are now 4 project modules used to check the arguments passed to the various project functions:

* `project-common.nix` - Arguments used by all the project functions
* `stack-project.nix` - Used by the `stackProject` and `stackProject'` functions
* `cabal-project.nix` - Used by the `cabalProject` and `cabalProject'` functions
* `project.nix` - Just the `projectFileName` argument that is used by `project` and `project'` functions to determine whether to call `stackProject` or `cabalProject` function.

This also includes the `rawProject.args` that was mistakenly left out of #1141 causing #1142 and improvements for the docs for the use of the `shell` argument in `flake.nix` files.
2021-06-20 18:00:22 +12:00
Hamish Mackenzie 172d402394 Add more flakes support and getting started guide (#972)
This PR adds a `flake` function to haskell.nix projects.  It can
be used to transform the outputs of project into a flattened structure
that can be used to make a `flake.nix` file for your project.

Because the nix code and commands used are different a lot of stuff in
the getting-started.md will not work with a `flake.nix`.  So instead
of trying to add a flake section to that guide this PR adds a new
version for Nix Flake users.
2021-02-22 20:42:33 +13:00