Moritz Angermann dfefba5be7 Call cabal project to nix (now with hackage-truncate) (#135)
* This adds more logic for the cabalProjectToNix idf

That is, something like this:

```
nix-build --expr 'with import ./. {}; callCabalProjectToNix { index-state = "2019-04-30T00:00:00Z"; src = /some/path; }'
```

should produce something that can be build with mkCabalProjectPkgSet.

* Make sure the hackageTarball's store path doesn't change

previously the fetchurl would produce a different store path each
and every time as hackage's index is a moving target.  With this
impurity setup, we can ignore this.

* Fix test

* Proper name

* Re-enable test

* Allow to parameterize over the `system` for the test default.nix

* Copy instead of link for ifds.

This makes me really sad.
2019-05-21 20:05:03 +08:00
2019-05-17 15:59:05 +08:00
2019-05-07 15:33:14 +08:00
2019-05-20 18:09:28 +08:00
2019-05-18 14:33:32 +08:00
2019-04-09 11:34:48 +08:00
2018-10-25 16:26:41 +08:00
2019-05-07 15:33:14 +08:00
2019-04-29 11:08:31 +08:00
2019-05-21 02:05:14 +00:00
2019-02-26 23:54:57 +08:00
2019-04-02 13:08:25 +10:00
2019-05-21 02:05:14 +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.

S
Description
Alternative Haskell Infrastructure for Nixpkgs
Readme 20 MiB
Languages
Nix 88.7%
Haskell 10.4%
Shell 0.8%