Skip to content

More refinements, and a cabal bump #214

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 4 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dynamic.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# define a development shell for dynamically linked applications (default)
{ self, pkgs, compiler, compiler-nix-name, toolsModule, withHLS ? true, withHlint ? true, withIOG ? true, withIOGFull ? false, withGHCTooling ? false }:
let tool-version-map = (import ./tool-map.nix) self;
let tool-version-map = (import ./tool-map.nix) (self // { inputs = self.inputs // {cabal = if withGHCTooling then self.inputs.cabal-experimental else self.inputs.cabal;}; });
tool = tool-name: pkgs.pkgsBuildBuild.haskell-nix.tool compiler-nix-name tool-name [(tool-version-map compiler-nix-name tool-name) toolsModule];
cabal-install = tool "cabal";
haskell-tools =
Expand Down Expand Up @@ -87,11 +87,13 @@ pkgs.mkShell {
''
+ lib.optionalString withGHCTooling ''
export HADRIAN_CONFIGURE_FLAGS="--with-gmp-includes=\"${lib.getDev gmp}/include\" --with-gmp-libraries=\"${lib.getLib gmp}/lib\""
echo "======= Building with Hadrian ======="
echo "HADRIAN_CONFIGURE_FLAGS set to $HADRIAN_CONFIGURE_FLAGS"
echo "To build GHC, run"
echo " ./boot"
echo " ./configure \"$HADRIAN_CONFIGURE_FLAGS\""
echo " ./hadrian/build -j"
echo "======= End of Hadrian build ======="
'';

buildInputs =
Expand Down
25 changes: 21 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
inputs.nixpkgs.follows = "haskellNix/nixpkgs-2411";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.iohk-nix.url = "github:input-output-hk/iohk-nix";
inputs.cabal.url = "github:stable-haskell/cabal?ref=wip/make-build";
inputs.cabal.url = "github:stable-haskell/cabal";
inputs.cabal.flake = false;
inputs.cabal-experimental.url = "github:stable-haskell/cabal?ref=angerman/cross";
inputs.cabal-experimental.flake = false;

outputs = { self, nixpkgs, flake-utils, haskellNix, iohk-nix, ... }:
let overlays = {
Expand Down
Loading