-
Notifications
You must be signed in to change notification settings - Fork 244
Remove internal deps on default ghc and stackage #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 22 commits
904dd76
fe86dcf
ee0cbc4
e22fff7
f0a1490
eeff15e
30df20a
482a1a1
b367bf2
52793cf
70f7775
dd704bd
cf4eeff
46fd628
275e162
caa940f
ba4e38e
d41b1c8
926766a
da181b4
b30a9a1
de8cbb7
10055a1
74935bc
bc2e42c
1903f33
1ef36f3
7461041
0661b4e
757b9a4
dfc49e2
855089e
c1bf1a3
18311c4
4ec19da
c0b401b
7c1453c
cb3d1c0
1be5755
b9345d2
4cebce4
21fb517
eba7f1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
let haskellNix = { | ||
checkMaterialization ? false, # Allows us to easily switch on materialization checking | ||
defaultCompilerNixName ? null, # Quick way to override the default compiler e.g. "ghc883" | ||
system ? builtins.currentSystem, | ||
sourcesOverride ? {}, | ||
... }@args: rec { | ||
sources = (import ./nix/sources.nix) // sourcesOverride; | ||
sources = { nixpkgs-default = sources.nixpkgs; } | ||
// (import ./nix/sources.nix) | ||
// sourcesOverride; | ||
|
||
config = import ./config.nix; | ||
overlays = [ allOverlays.combined ] ++ ( | ||
|
@@ -18,16 +19,23 @@ let haskellNix = { | |
)] | ||
else [] | ||
) ++ ( | ||
if defaultCompilerNixName != null | ||
if args ? defaultCompilerNixName | ||
then [( | ||
final: prev: { | ||
haskell-nix = prev.haskell-nix // { | ||
inherit defaultCompilerNixName; | ||
userCompilerNixName = args.defaultCompilerNixName; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd be tempted to just drop it and make this an error... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need something to make the tests work though. I quite like the idea of replacing this with something like:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do the tests need to set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes I'm going to update all the tests so they do that instead of using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test suite no longer uses defaultCompilerNixName. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought the point of that change was so we could then get rid of the The only other reason I can see to keep it is backwards compatibility, but I buy Rodney's argument that that's something of a losing battle anyway and we should just keep a changelog. |
||
}; | ||
} | ||
)] | ||
else [] | ||
); | ||
) ++ [( | ||
final: prev: { | ||
haskell-nix = prev.haskell-nix // { | ||
inherit overlays; | ||
sources = prev.haskell-nix.sources // sourcesOverride; | ||
}; | ||
} | ||
)]; | ||
allOverlays = import ./overlays args; | ||
nixpkgsArgs = { inherit config overlays system; }; | ||
pkgs = import sources.nixpkgs-default nixpkgsArgs; | ||
|
@@ -44,7 +52,6 @@ in haskellNixV1 // { | |
__functor = _: { | ||
version ? 2, | ||
checkMaterialization ? false, # Allows us to easily switch on materialization checking | ||
defaultCompilerNixName ? null, # Quick way to override the default compiler e.g. "ghc883" | ||
system ? builtins.currentSystem, | ||
sourcesOverride ? {}, | ||
... }@args: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be the same as any of the other versions? When can we upgrade it?