summary refs log tree commit diff
path: root/doc/languages-frameworks/haskell.section.md
diff options
context:
space:
mode:
authorCarlos D <carlos.dagostino@gmail.com>2018-08-13 14:46:11 +1000
committerCarlos D <carlos.dagostino@gmail.com>2018-08-13 14:46:11 +1000
commit0e7a34a1aa64bb7e59832558bba8c5e66e7d049e (patch)
treeebf6cc864285af07d1a26d59110be3e902dfc8b2 /doc/languages-frameworks/haskell.section.md
parenta1b79f63bd80473ae9ad43ed372d282d734fc3b1 (diff)
downloadnixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.tar
nixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.tar.gz
nixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.tar.bz2
nixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.tar.lz
nixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.tar.xz
nixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.tar.zst
nixpkgs-0e7a34a1aa64bb7e59832558bba8c5e66e7d049e.zip
docs: add some docs for hackage2nix
Diffstat (limited to 'doc/languages-frameworks/haskell.section.md')
-rw-r--r--doc/languages-frameworks/haskell.section.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/languages-frameworks/haskell.section.md b/doc/languages-frameworks/haskell.section.md
index c0dc741eabc..7677c366191 100644
--- a/doc/languages-frameworks/haskell.section.md
+++ b/doc/languages-frameworks/haskell.section.md
@@ -1047,6 +1047,19 @@ As you can see, `packunused` finds out that although the testsuite component has
 no redundant dependencies the library component of `scientific-0.3.5.1` depends
 on `ghc-prim` which is unused in the library.
 
+### Using hackage2nix with nixpkgs
+
+Hackage package derivations are found in the
+[`hackage-packages.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/hackage-packages.nix)
+file within `nixpkgs` and are used as the initial package set for
+`haskellPackages`. The `hackage-packages.nix` file is not meant to be edited
+by hand, but rather autogenerated by [`hackage2nix`](https://github.com/NixOS/cabal2nix/tree/master/hackage2nix),
+which by default uses the [`configuration-hackage2nix.yaml`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-hackage2nix.yaml)
+file to generate all the derivations.
+
+To modify the contents `configuration-hackage2nix.yaml`, follow the
+instructions on [`hackage2nix`](https://github.com/NixOS/cabal2nix/tree/master/hackage2nix).
+
 ## Other resources
 
   - The Youtube video [Nix Loves Haskell](https://www.youtube.com/watch?v=BsBhi_r-OeE)