on iko/ghcjs-patch-master help sign in
Added a configuration-nix.nix file for plan-agnostic configuration
d4cf3d2Will Fancher
modules/configuration-nix.nixnew file+11
@@ -0,0 +1,11 @@
1+# This file is for configuration that should be required by every
2+# package set. Hopefully we can keep configuration for particular
3+# pacakge sets out of this repo. Ideally, this file is only used for
4+# fixing things that are broken due to the Nix infrastructure.
5+
6+{ pkgs, ... }: {
7+ # terminfo doesn't list libtinfo in its cabal file. We could ignore
8+ # this if we used the terminfo shipped with GHC, but this package is
9+ # reinstallable so we'd rather have it defined in the plan.
10+ packages.terminfo.components.library.libs = [pkgs.ncurses];
11+}
new-package-set.nix+3
@@ -33,5 +33,8 @@
33
33
34 # Converts config.hackage.configs and pkg-def to config.packages
34 # Converts config.hackage.configs and pkg-def to config.packages
35 ./modules/plan.nix
35 ./modules/plan.nix
36+
37+ # Configuration that applies to all plans
38+ ./modules/configuration-nix.nix
36 ];
39 ];
37}
40}