A fork of haskell.nix with a more efficient GHCJS 8.10 compiler
Go to file
Moritz Angermann 2d54f2c303
Use pkgs.fetchurl to build a fixed output derivation (#145)
* Use pkgs.fetchurl to build a fixed output derivation

This should hopefully get us around the restricted limitations.

* Adds asserts

* Fix index-state-hashes file

* Fix index-state-hashes

Also adds a regeneration tool:

```
nix build -f ./. generateHackageIndexStateHashes
cp result lib/index-state-hashes.nix
```

* Fix off-by-one

* better errors
2019-05-23 13:13:04 +08:00
.buildkite Buildkite: Final fixes for hackage.nix/stackage.nix updates 2019-04-04 12:43:48 +10:00
builder Add more pkgconf mappings (#126) 2019-05-17 15:59:05 +08:00
docs Update docs (#107) 2019-05-07 15:33:14 +08:00
lib Use pkgs.fetchurl to build a fixed output derivation (#145) 2019-05-23 13:13:04 +08:00
mk-local-hackage-repo Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
modules Unbreak build-tools (#136) 2019-05-20 18:09:28 +08:00
nix-tools Use pkgs.fetchurl to build a fixed output derivation (#145) 2019-05-23 13:13:04 +08:00
nixpkgs bump nixpkgs (#131) 2019-05-18 14:33:32 +08:00
patches fix typo 2019-04-09 11:34:48 +08:00
scripts Buildkite: Final fixes for hackage.nix/stackage.nix updates 2019-04-04 12:43:48 +10:00
test Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
.gitattributes Add .gitattributes for auto-generated files 2019-04-02 12:43:37 +10:00
.gitignore adds gitignore 2018-10-25 16:26:41 +08:00
call-stack-to-nix.nix Add callStackToNix function (#116) 2019-05-17 15:49:40 +08:00
changelog.md Update docs (#107) 2019-05-07 15:33:14 +08:00
COPYING License Apache 2.0 2019-04-29 11:08:31 +08:00
default.nix Use pkgs.fetchurl to build a fixed output derivation (#145) 2019-05-23 13:13:04 +08:00
hackage-src.json Update Hackage and Stackage 2019-05-23 01:10:05 +00:00
mkdocs.yml More docs (#64) 2019-02-26 23:54:57 +08:00
package-set.nix Rename pkg-def-overlays to pkg-def-extras (#79) 2019-03-15 11:10:57 +08:00
README.org fix typo, --help argument does not exist (#142) 2019-05-21 18:06:56 +08:00
release.nix Fix eval of hydra jobset 2019-04-02 13:08:25 +10:00
stackage-src.json Update Hackage and Stackage 2019-05-22 01:43:29 +00:00

Alternative Haskell Infrastructure for Nixpkgs

https://badge.buildkite.com/d453edcd29bd2f8f3f3b32c9b7d6777a33773d9671c37a6ccc.svg?branch=master

haskell.nix is an experimental new builder for Haskell packages.

It works by automatically translating your Cabal or Stack project and its dependencies into Nix code. Most of your dependencies are already translated, so you generally won't have too much generated code.

For the documentation, see https://input-output-hk.github.io/haskell.nix/.

Quickstart

This will download and build nix-tools.

nix build -f https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz nix-tools -o nt
./nt/bin/cabal-to-nix

Related repos

The haskell.nix repository contains the runtime system for building Haskell packages in Nix. It depends on other repos, which are:

  • nix-tools — provides the programs for generating Nix expressions from Haskell projects.
  • hackage.nix — the latest contents of the Hackage databases, converted to Nix expressions.
  • stackage.nix — all of the Stackage snapshots, converted to Nix expressions.

IRC Channel

Join the #haskell.nix channel on irc.freenode.net to get help or discuss the development of haskell.nix and nix-tools.