Commit Graph

29 Commits

Author SHA1 Message Date
Kirill Zaborsky
3c78fdaede Use hpack to generate cabal files when required (#82)
* Use hpack to generate cabal files when required
2019-03-06 08:46:34 +08:00
Will Fancher
de6a254d0f Remove self from depends of "all" component in the module system
Much cleaner to do this in the definition of `all`, rather than adding
special logic elsewhere.
2019-02-20 16:17:44 +08:00
Rodney Lorrimar
3584345a9a Fix cross build of withPackage wrapper 2019-02-14 09:35:57 +08:00
Rodney Lorrimar
d1457606ed
builder: Add haddock and hoogle to components.library.doc 2019-02-12 12:44:10 +10:00
Will Fancher
70f01c2029 Use mkForce in with-package test, and add a comment about the quirk. 2019-02-04 16:23:29 +08:00
Will Fancher
17ead947b0 Use config to set componentType defaults. 2019-02-04 16:23:29 +08:00
Will Fancher
a7568a0e77 Use mkmerge for the all component. [Fixes #42] 2019-02-04 16:23:29 +08:00
Rodney Lorrimar
57049091b3
Fix dependency merging of "all" component 2019-01-31 13:17:45 +10:00
Rodney Lorrimar
20226fa294
builder: Add nix-shell development environments 2019-01-30 15:38:38 +10:00
Rodney Lorrimar
73f3733a2f
Add an "all" component 2019-01-30 15:25:17 +10:00
Moritz Angermann
dae8025469 Add ghc-heap to the nonReinstallablePkgs
This should better be aligned with the other set we have in
`default.nix`.  We are currently maintaining the list twice
in different locations.
2019-01-27 22:15:06 +08:00
Moritz Angermann
4050450b86
Allow patches to optionally depend on version and revision
This allows us to patch hackage packages to match those as shipped
with ghc; which we sadly have to.
2019-01-18 15:45:56 +08:00
Moritz Angermann
11a4b5e84c
Allow configureFlags at package level 2018-12-22 22:59:40 +08:00
Moritz Angermann
03026b7bb9
Adds cabal-generator 2018-12-11 09:15:28 +08:00
Moritz Angermann
6cf6e943c0
add more cross and docrosscheck logic 2018-12-10 15:47:51 +08:00
Moritz Angermann
34bf8d224a
Move copy logic from test to install 2018-11-30 18:11:35 +08:00
Moritz Angermann
9151dff3f3
Adds hooks 2018-11-26 17:26:18 +08:00
Moritz Angermann
40351aaeb2
Drop the overlay stuff 2018-11-18 16:19:19 +08:00
Moritz Angermann
5838e54278
Make sure we don't flood libraries with RPATHs on macOS 2018-11-18 16:18:56 +08:00
Moritz Angermann
9e804c6703 Update package.nix 2018-11-08 15:32:51 +08:00
Moritz Angermann
f7c010387b This adds logic to better support stackage (stack-to-nix)
When using stackage as a baseline via stack-to-nix, we usually
assume stackage to be the base, and some augemnetation via
extra-dependencies and packages in the `stack.yaml` file.

To achive this we extend the package-set builder by allowing
a list of additional sets of package to speicied. These are then
folded onto the base package set.

As stackage seems to define the `rts` package as well, we force
`rts-1.0` to be null ontop of our hackage database.  As of
today (November 7th, 2018) there is no way of building the rts outside
of GHC; and as such no way to ever get the rts package onto hackage.

Once this package is *on* hackage, we can drop the hack.
2018-11-08 15:30:54 +08:00
Moritz Angermann
660cfbb3f7 make the stack logic work ... 2018-11-08 15:30:54 +08:00
Moritz Angermann
ce32200e5c Update package.nix 2018-11-05 17:19:07 +08:00
Moritz Angermann
4437439f0e Add support for pathes
That is setting

```nix
{
  packages.$pkg.patches = [ ... ];
}
```

to set patches on a package.
2018-11-05 17:19:07 +08:00
Will Fancher
f2b80ee3ef Cross compilation 2018-11-04 18:38:02 +08:00
Will Fancher
1bb2a42d3a Option for exact-config 2018-11-03 21:41:28 +08:00
Will Fancher
d4cf3d2b32 Added a configuration-nix.nix file for plan-agnostic configuration 2018-11-01 13:33:41 +08:00
Will Fancher
9bbc69adf4 Don't null out all compiler.packages; only nonreinstallable packages 2018-11-01 13:33:41 +08:00
Will Fancher
d18913eaa6 Use NixOS module system 2018-11-01 13:33:41 +08:00