on rvl/call-cabal-to-nix help sign in
haskell.nix/README.org
34 lines 1.4 kB history raw
1* Alternative Haskell Infrastructure for Nixpkgs
3[[https://travis-ci.org/input-output-hk/haskell.nix][https://travis-ci.org/input-output-hk/haskell.nix.svg?branch=master]]
5=haskell.nix= is an experimental new builder for Haskell packages.
7It works by automatically translating your Cabal or Stack project and
8its dependencies into Nix code. Most of your dependencies are already
9translated, so you generally won't have too much generated code.
11For full documentation, see https://input-output-hk.github.io/haskell.nix
13** Quickstart
15This will download and build =nix-tools=.
17#+begin_src sh
18nix build -f https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz nix-tools -o nt
19./nt/bin/cabal-to-nix --help
20#+end_src
22** Related repos
24The =haskell.nix= repository contains the runtime system for building
25Haskell packages in Nix. It depends on other repos, which are:
27- [[https://github.com/input-output-hk/nix-tools][nix-tools]] — provides the programs for generating Nix expressions from
28 Haskell projects.
30- [[https://github.com/input-output-hk/hackage.nix][hackage.nix]] — the latest contents of the [[https://hackage.haskell.org/][Hackage]] databases,
31 converted to Nix expressions.
33- [[https://github.com/input-output-hk/stackage.nix][stackage.nix]] — all of the [[https://www.stackage.org/][Stackage]] snapshots, converted to Nix
34 expressions.