A fork of haskell.nix with a more efficient GHCJS 8.10 compiler
Go to file
Hamish Mackenzie 91036142ef
Better support for allow-import-from-derivation=false (#1474)
Currently haskell.nix uses IFDs internally in a number of places.  This prevents the use of `--option allow-import-from-derivation false` even when `materialized` nix is provided.

* Changes `materialize` function so that it returns the `materialized` path when possible instead of a derivation (updates import-and-filter-project.nix to cope with that).
* Materializes the spdx json file.
* Prevents haskell.nix looking for `cabal.project`, `cabal.project.local` and `cabal.project.freeze` files in hackage packages and the ghc-extra-projects.
2022-06-02 20:11:27 +12:00
.buildkite Better support for allow-import-from-derivation=false (#1474) 2022-06-02 20:11:27 +12:00
.github/workflows Update windows-secp256k1 github action (#1428) 2022-04-05 18:53:13 +12:00
builder Add ghc 9.2.3 (#1491) 2022-06-01 19:33:58 +12:00
compiler Add ghc 9.2.3 (#1491) 2022-06-01 19:33:58 +12:00
docs Add ghc 9.2.3 (#1491) 2022-06-01 19:33:58 +12:00
hix Flakify all inputs (#1180) 2021-08-06 15:54:39 +12:00
lib Better support for allow-import-from-derivation=false (#1474) 2022-06-02 20:11:27 +12:00
materialized Better support for allow-import-from-derivation=false (#1474) 2022-06-02 20:11:27 +12:00
mk-local-hackage-repo Don't use allowSubstitutes=false (#1389) 2022-03-03 15:17:42 +13:00
modules Fix for ghc-lib-parser 9.2 and haskell.nix patched ghc (#1502) 2022-06-02 15:00:54 +12:00
overlays Better support for allow-import-from-derivation=false (#1474) 2022-06-02 20:11:27 +12:00
patches Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
scripts Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
test Default reinstallableLibGhc to true (#1498) 2022-06-02 13:21:12 +12:00
.gitattributes Update ghc 8.4.4 based tools to ghc 8.6.5 (#618) 2020-05-21 11:31:26 +12:00
.gitignore bump nix tools (#476) 2020-03-06 17:19:45 +08:00
bors.toml Add bors.toml to enable bors 2020-03-05 12:22:57 +13:00
build.nix Default reinstallableLibGhc to true (#1498) 2022-06-02 13:21:12 +12:00
changelog.md Improve support for external Hackage repositories (#1370) 2022-02-18 00:42:11 +13:00
ci-lib.nix Flakify all inputs (#1180) 2021-08-06 15:54:39 +12:00
ci.nix Add ghc 9.2.3 (#1491) 2022-06-01 19:33:58 +12:00
config.nix Remove openssl-1.0.2u from list of whitelisted insecure packages (#1492) 2022-05-31 11:00:36 +12:00
COPYING License Apache 2.0 2019-04-29 11:08:31 +08:00
default.nix Update flake-compat (#1252) 2021-09-28 17:26:52 +13:00
dimension.nix Tidy ci.nix using dimension (#500) 2020-03-20 20:52:34 +13:00
flake.lock Update Hackage and Stackage 2022-06-02 01:18:17 +00:00
flake.nix Better support for allow-import-from-derivation=false (#1474) 2022-06-02 20:11:27 +12:00
hackage-src.json Update Hackage and Stackage 2021-08-06 01:13:20 +00:00
mkdocs.yml fix typo (#1213) 2021-08-25 11:51:47 +12:00
package-set.nix Updated system-nixpkgs-map.nix and a default for X11 package (fixes #984) (#988) 2021-01-08 13:10:00 +13:00
README.md fix readme links (#1326) 2022-01-02 10:38:31 +08:00
release-linux-only.nix Add GHC 9.0.1 (#1032) 2021-03-28 21:03:20 +13:00
release.nix ifdLevel 3 2022-05-13 10:59:32 +12:00
shell.nix Flakify all inputs (#1180) 2021-08-06 15:54:39 +12:00
snapshots.nix Default reinstallableLibGhc to true (#1498) 2022-06-02 13:21:12 +12:00
stackage-src.json Update Hackage and Stackage 2021-08-05 01:13:16 +00:00

haskell.nix is infrastructure for building Haskell packages with Nix

haskell.nix can automatically translate your Cabal or Stack project and its dependencies into Nix code.

Documentation

Help! Something isn't working

The #1 problem that people have when using haskell.nix is that they find themselves building GHC. This should not happen, but you must follow the haskell.nix setup instructions properly to avoid it. If you find this happening to you, please check that you have followed the getting started instructions and consult the corresponding troubleshooting section.

The troubleshooting documentation also contains some help for other common issues. Please give it a read before asking on IRC or opening an issue.

If you're still stuck, join the #haskell.nix channel on irc.libera.chat, or open an issue.

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.