summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-08-13 20:42:33 +0200
committerVladimír Čunát <vcunat@gmail.com>2018-08-13 20:43:59 +0200
commit5b0398dc36ce5746d8d54e04a1dfcab25939484a (patch)
tree35dbf68b90a8b5e2cbbbbc3ccfbc2529d4c5ca23 /doc
parent34baf00b72ad0932f6a2add6cee88d2e8b7bec8e (diff)
parent249ba3d3ed76e34f61ab7bb2024b013f3feaafb9 (diff)
downloadnixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.tar
nixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.tar.gz
nixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.tar.bz2
nixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.tar.lz
nixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.tar.xz
nixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.tar.zst
nixpkgs-5b0398dc36ce5746d8d54e04a1dfcab25939484a.zip
Merge branch 'master' into staging-next
Conflicts: gobby and libinfinity - I took the hand-edited versions
instead of those resuting from the mass-replacement.

Hydra: ?compare=1473190
Diffstat (limited to 'doc')
-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)