on iko/ghcjs-patch-master help sign in
Added a configuration-nix.nix file for plan-agnostic configuration
commitd4cf3d2b3255bd1177c9acc790034b1862411ce1 authorWill Fancher <elvishjerricco@gmail.com> dateWed 31 Oct 2018, 22:36 (8 years ago) parent9bbc69a
2 files changed+14
modules/configuration-nix.nix+11 new-package-set.nix+3
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 @@
3333
3434 # Converts config.hackage.configs and pkg-def to config.packages
3535 ./modules/plan.nix
36+
37+ # Configuration that applies to all plans
38+ ./modules/configuration-nix.nix
3639 ];
3740}