-
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
Merged
Merged
Changes from 33 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
904dd76
Remove internal deps on default ghc and stackage
hamishmack fe86dcf
Merge remote-tracking branch 'origin/master' into hkm/avoid-defaults
hamishmack ee0cbc4
ifdLevel 1
hamishmack e22fff7
Set `"builtin": false` in sources.json
hamishmack f0a1490
Use nixpkgs instead of nixpkgs-default for niv
hamishmack eeff15e
Use nixpkgs instead of nixpkgs-default for niv
hamishmack 30df20a
ifdLevel 2
hamishmack 482a1a1
ifdLevel 3
hamishmack b367bf2
Update tests to make compiler-nix-name explicit
hamishmack 52793cf
Fix for cabal-install on ghc 8.10.1
hamishmack 70f7775
Fix build.nix
hamishmack dd704bd
Fix test
hamishmack cf4eeff
Add missing compiler-nix-name in ci.nix
hamishmack 46fd628
Better warnings
hamishmack 275e162
Merge master into hkm/avoid-defaults
hamishmack caa940f
Better warnings
hamishmack ba4e38e
Remove redundant tests
hamishmack d41b1c8
Add default for ./test/test.sh on buildkite
hamishmack 926766a
Add cabal-nix-name default for buildkite tests
hamishmack da181b4
Add compiler-nix-name to script functions
hamishmack b30a9a1
Fix extra-hackage buildkite test
hamishmack de8cbb7
Check the materialization
hamishmack 10055a1
Fix materialization
hamishmack 74935bc
Fix eval time warnings
hamishmack bc2e42c
Fix hydra eval (maybe)
hamishmack 1903f33
Materialization fixes
hamishmack 1ef36f3
Another materialization fix
hamishmack 7461041
Switch checkMaterialization off (tests passed)
hamishmack 0661b4e
Update getting-started
hamishmack 757b9a4
Remove deprecated code
hamishmack dfc49e2
Remove ./nixpkgs
hamishmack 855089e
Remove ./nixpkgs
hamishmack c1bf1a3
Reenable call-stack-to-nix ifdInput test
hamishmack 18311c4
Merge remote-tracking branch 'origin/master' into hkm/avoid-defaults
hamishmack 4ec19da
Documentation and explicit test compiler-nix-names
hamishmack c0b401b
Add missing \
hamishmack 7c1453c
Add compiler-nix-name for maintainer scripts test
hamishmack cb3d1c0
Move compiler-nix-name to the right command
hamishmack 1be5755
Merge remote-tracking branch 'origin/master' into hkm/avoid-defaults
hamishmack b9345d2
Fix test
hamishmack 4cebce4
Expand comment
hamishmack 21fb517
Fix docs for callCabalProjectToNix
hamishmack eba7f1e
Set date
hamishmack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,28 @@ | ||
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; | ||
|
||
config = import ./config.nix; | ||
overlays = [ allOverlays.combined ] ++ ( | ||
if checkMaterialization == true | ||
then [( | ||
final: prev: { | ||
haskell-nix = prev.haskell-nix // { | ||
checkMaterialization = true; | ||
}; | ||
} | ||
)] | ||
else [] | ||
) ++ ( | ||
if defaultCompilerNixName != null | ||
then [( | ||
final: prev: { | ||
haskell-nix = prev.haskell-nix // { | ||
inherit defaultCompilerNixName; | ||
}; | ||
} | ||
)] | ||
else [] | ||
); | ||
allOverlays = import ./overlays args; | ||
nixpkgsArgs = { inherit config overlays system; }; | ||
pkgs = import sources.nixpkgs-default nixpkgsArgs; | ||
}; | ||
|
||
v1DeprecationMessage = "Version 1 is deprecated: use version 2 (nixpkgs arguments are available as the `nixpkgsArgs` attribute of version 2)"; | ||
haskellNixV1 = (haskellNix {}).nixpkgsArgs // { | ||
overlays = builtins.trace v1DeprecationMessage (haskellNix {}).nixpkgsArgs.overlays; | ||
}; | ||
haskellNixV2 = haskellNix; | ||
|
||
# If no arguments, then you get V1 | ||
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: | ||
if version == 1 | ||
then haskellNixV1 | ||
else if version == 2 | ||
then haskellNixV2 args | ||
else builtins.throw ("haskell.nix: unknown version: " + (builtins.toString version)); | ||
{ checkMaterialization ? false # Allows us to easily switch on materialization checking | ||
, system ? builtins.currentSystem | ||
, sourcesOverride ? {} | ||
, ... }@args: rec { | ||
sources = (import ./nix/sources.nix) // sourcesOverride; | ||
config = import ./config.nix; | ||
overlays = [ allOverlays.combined ] ++ ( | ||
if checkMaterialization == true | ||
then [( | ||
final: prev: { | ||
haskell-nix = prev.haskell-nix // { | ||
checkMaterialization = true; | ||
}; | ||
} | ||
)] | ||
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 nixpkgsArgs; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
let inherit (import ../. {}) sources nixpkgsArgs; | ||
pkgs = import sources.nixpkgs-default (nixpkgsArgs // { crossSystem.config = "x86_64-pc-mingw32"; }); | ||
pkgs = import sources.nixpkgs (nixpkgsArgs // { crossSystem.config = "x86_64-pc-mingw32"; }); | ||
in (pkgs.haskell-nix.stackProject (import ./cardano-sl-args.nix)).cardano-sl.components.all |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?