Skip to content

Commit b153ade

Browse files
authored
More refinements, and a cabal bump (#214)
* Update cabal ref * Make clear it's Hadrian flags * bump * bump (again)
1 parent cb6ee08 commit b153ade

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

Diff for: dynamic.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# define a development shell for dynamically linked applications (default)
22
{ self, pkgs, compiler, compiler-nix-name, toolsModule, withHLS ? true, withHlint ? true, withIOG ? true, withIOGFull ? false, withGHCTooling ? false }:
3-
let tool-version-map = (import ./tool-map.nix) self;
3+
let tool-version-map = (import ./tool-map.nix) (self // { inputs = self.inputs // {cabal = if withGHCTooling then self.inputs.cabal-experimental else self.inputs.cabal;}; });
44
tool = tool-name: pkgs.pkgsBuildBuild.haskell-nix.tool compiler-nix-name tool-name [(tool-version-map compiler-nix-name tool-name) toolsModule];
55
cabal-install = tool "cabal";
66
haskell-tools =
@@ -87,11 +87,13 @@ pkgs.mkShell {
8787
''
8888
+ lib.optionalString withGHCTooling ''
8989
export HADRIAN_CONFIGURE_FLAGS="--with-gmp-includes=\"${lib.getDev gmp}/include\" --with-gmp-libraries=\"${lib.getLib gmp}/lib\""
90+
echo "======= Building with Hadrian ======="
9091
echo "HADRIAN_CONFIGURE_FLAGS set to $HADRIAN_CONFIGURE_FLAGS"
9192
echo "To build GHC, run"
9293
echo " ./boot"
9394
echo " ./configure \"$HADRIAN_CONFIGURE_FLAGS\""
9495
echo " ./hadrian/build -j"
96+
echo "======= End of Hadrian build ======="
9597
'';
9698

9799
buildInputs =

Diff for: flake.lock

+21-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: flake.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
inputs.nixpkgs.follows = "haskellNix/nixpkgs-2411";
66
inputs.flake-utils.url = "github:numtide/flake-utils";
77
inputs.iohk-nix.url = "github:input-output-hk/iohk-nix";
8-
inputs.cabal.url = "github:stable-haskell/cabal?ref=wip/make-build";
8+
inputs.cabal.url = "github:stable-haskell/cabal";
99
inputs.cabal.flake = false;
10+
inputs.cabal-experimental.url = "github:stable-haskell/cabal?ref=angerman/cross";
11+
inputs.cabal-experimental.flake = false;
1012

1113
outputs = { self, nixpkgs, flake-utils, haskellNix, iohk-nix, ... }:
1214
let overlays = {

0 commit comments

Comments
 (0)