Commit Graph

8091 Commits

Author SHA1 Message Date
Peter Simons
921bb64a6d haskell-ng: fix old Cabal builds 2015-01-11 20:56:21 +01:00
Peter Simons
bca9b8d867 haskell-generic-builder: make $shellHook in 'env' attribute more robust
In case our GHC environment is empty, the old code ended up running
'grep export' on a GHC binary, which doesn't seem like a good idea.
2015-01-11 11:59:47 +01:00
Peter Simons
dbb4012fdc haskell-generic-builder: add a helpful message that explains why it makes no sense to build an 'env' attribute 2015-01-11 11:39:16 +01:00
Peter Simons
7fa32aecd1 haskell-cabal-test-quickcheck: fix build with GHC 7.8.4 2015-01-11 01:46:30 +01:00
Peter Simons
b31082d246 haskell-generic-builder: propagate build inputs only if we're building a library 2015-01-10 23:54:30 +01:00
Peter Simons
be8219e35b haskell-ng: disable broken ghcjs build 2015-01-10 23:36:59 +01:00
Peter Simons
2ff8d1940f haskell-configuration-*: polish compiler-specific overrides 2015-01-10 23:36:59 +01:00
Peter Simons
55003ca34b pkgs/development/haskell-modules/lib.nix: add funky helper function for overriding 2015-01-10 23:36:59 +01:00
Peter Simons
7e2f1493b7 haskell-ng: update to jailbreak-cabal 1.2, which supports Cabal 1.22.x now 2015-01-10 18:50:49 +01:00
Shea Levy
e4c9a521ef haskellng: remove amazonka patches.
New amazonka was released.

@peti Long-term, is there a way to have hackage2nix warn about patched
packages?
2015-01-10 11:35:25 -05:00
Peter Simons
11ac18a6e6 haskell-ng: update cabal2nix snapshot 2015-01-10 15:55:47 +01:00
Peter Simons
89b5d9ee14 haskell-generic-builder: add an 'env' attribute to every Haskell expression that can be used with nix-shell to create an interactive build environment for this package
For example:

  nix-shell --pure ~/.nix-defexpr -A haskell-ng.packages.ghc784.hsdns.env
2015-01-10 15:55:47 +01:00
Peter Simons
f36973ce83 haskell-ng: Make ghcWithPackages available as ghc.withPackages, too. 2015-01-10 15:55:47 +01:00
Peter Simons
afca6145d4 haskell-generic-builder: simplify "package.conf.d" management
The builder creates a temporary package.conf.d database in $TMP that
contains everything required to build the current package (i.e. the
transitive closure of the package's propagated build inputs). These
files are no longer installed, however, we just install the package.conf
file for the package we're actually building. This means that
package.conf.d directory in $out won't have collisions anymore, which
simplifies the with-packages-wrapper.nix a bit.
2015-01-10 15:55:47 +01:00
Peter Simons
fa27f2af5b hackage-packages.nix: rebuild from Hackage 2015-01-10T13:56:15+0100 2015-01-10 15:55:47 +01:00
Peter Simons
cbca401a04 configuration-ghc-7.9.x: fix license attribute for doctest override 2015-01-10 15:55:46 +01:00
Peter Simons
2d83ff9f3e haskell-configuration-ghc-7.9.x: use current Git HEAD of doctest to fix lots of test suites 2015-01-10 11:31:04 +01:00
Peter Simons
60ecd42514 haskell-ng: add current Git version of cabal2nix to the package set
nix-env -iA haskellPackages.cabal2nix    ==> 1.x branch
  nix-env -iA haskellngPackages.cabal2nix  ==> 2.x branch
2015-01-10 11:31:04 +01:00
Shea Levy
6e008f05ab haskellng: Get amazonka family building
amazonka-0.0.7 is broken, so I also updated hackage-packages after
applying NixOS/cabal2nix#119.
2015-01-09 19:03:27 -05:00
Shea Levy
60fec84379 Disable split testsuite on 7.10 2015-01-09 17:02:42 -05:00
Shea Levy
dd558e0baa Disable old-locale for aeson on 7.10
@peti why does hackage2nix enable that flag anyway?
2015-01-09 16:24:38 -05:00
Shea Levy
69f5738668 attoparsec: Fix build for 7.10 2015-01-09 16:18:16 -05:00
Shea Levy
4d325bcede haskellng: bump text-icu
Taken from d2566a190e
2015-01-09 15:55:22 -05:00
Shea Levy
473b0d9535 Revert "hackage-packages.nix: Update to 2015/01/09-20:00 UTC"
For some reason this set a lot of native dependencies to null. I'll just
take the text-icu bump by itself for now.

@peti how am I meant to use hackage2nix?

This reverts commit d2566a190e.
2015-01-09 15:53:35 -05:00
Shea Levy
d2566a190e hackage-packages.nix: Update to 2015/01/09-20:00 UTC
Needed text-icu bump
2015-01-09 15:03:42 -05:00
Shea Levy
b1c3c3276d Miscellaneous ghcHEAD fixes 2015-01-09 14:57:39 -05:00
Shea Levy
93b75f6284 ghc-ng-7.10: More doctest fixes 2015-01-09 14:07:36 -05:00
Peter Simons
adf0a891be haskell-configuration-ghc-7.9.x: add a couple of overrides to disable failing test suites (mostly doctest) 2015-01-09 19:55:25 +01:00
Peter Simons
2761c63bcf configuration-ghc-7.9.x: GHC 7.10.1-rc1 can build Haddock documentation, but it cannot build Hoogle files 2015-01-09 19:55:25 +01:00
Peter Simons
2f2f767813 haskell-generic-builder: allow selective enabling/disabling of the --hoogle flag to Haddock 2015-01-09 19:55:25 +01:00
Michael Raskin
e67bb36821 Work around buildEnv sometimes deciding to make bin a symlink 2015-01-09 21:40:06 +03:00
Shea Levy
ad632cc9c8 utf8-string has too string base upper bound 2015-01-09 13:38:34 -05:00
Shea Levy
119f5baa22 Fix transformers-compat on 7.10-ng 2015-01-09 13:33:10 -05:00
Peter Simons
38e2e8702c ghcWithPackages: call this derivation exactly like the compiler it's based on
Furthermore, export "name" and "version" attributes that match those of the
underlying compiler. These changes make a ghcWithPackages-generated wrapper
look exactly like a normal GHC derivation and it can be used anywhere in
Nixpkgs where a normal GHC would be used.
2015-01-09 19:30:14 +01:00
Peter Simons
96ae5d58bf haskell-configuration-ghc-7.9.x: steal a working jailbreak-cabal binary from the 7.8.4 package set to alleviate the effects of https://github.com/peti/jailbreak-cabal/issues/3 2015-01-09 19:17:59 +01:00
Peter Simons
388848fa9f haskell-configuration-ghc-7.8.x: various build fixes
- mtl-2.2.x needs transformers 0.4.x.
 - time-1.5.x can't build its test suite.
 - provide deep overrides for amazonka-* stuff to build with GHC 7.8.x
2015-01-08 18:50:19 +01:00
Peter Simons
3c8b33eee4 haskell-modules: implement overrideScope method for deep overriding
deepOverride turns out to be completely unfeasible for non-trivial overrides.
Nix evaluates for an eternity, and then comes back saying:

  Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
  nix-instantiate killed by signal 6

The hand-written deep-override, on the other hand, performs the job in a
fraction of a second, no problem.

All bow to Russell O'Connor!
2015-01-08 18:50:19 +01:00
Peter Simons
d737d463c6 hackage-packages.nix: update from Hackage 2015-01-08T16:50:56+0100
This update also brings monad-control version 1.x by default, and some
additional (older) versions of the amazonka package family.
2015-01-08 18:50:19 +01:00
Peter Simons
197e7672e6 haskell-configuration-ghc-7.9.x: improve configuration to fix some builds 2015-01-08 13:46:47 +01:00
Peter Simons
0811375a69 haskell-configuration-common: cosmetic 2015-01-08 13:46:47 +01:00
Peter Simons
54baa53df1 Say hello to our brand-new Haskell infrastructure. 2015-01-07 23:45:21 +01:00