Skip to content

Commit d316c03

Browse files
authored
Some adjustments for the ghc build shell (#213)
* Add libffi * Update cabal ref * Add extra quotes.
1 parent 9f53bb9 commit d316c03

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

Diff for: dynamic.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pkgs.mkShell {
8484
export DYLD_LIBRARY_PATH="${lib.getLib openssl}/lib"
8585
''
8686
+ lib.optionalString withGHCTooling ''
87-
export HADRIAN_CONFIGURE_FLAGS=--with-gmp-includes="${lib.getDev gmp}/include" --with-gmp-libraries="${lib.getLib gmp}/lib"
87+
export HADRIAN_CONFIGURE_FLAGS="--with-gmp-includes=\"${lib.getDev gmp}/include\" --with-gmp-libraries=\"${lib.getLib gmp}/lib\""
8888
echo "HADRIAN_CONFIGURE_FLAGS set to $HADRIAN_CONFIGURE_FLAGS"
8989
echo "To build GHC, run"
9090
echo " ./boot"
@@ -129,7 +129,7 @@ pkgs.mkShell {
129129
++ attrValues haskell-tools
130130
)
131131
++ optionals withGHCTooling (
132-
with pkgs; [ python3 automake autoconf alex happy git ]
132+
with pkgs; [ python3 automake autoconf alex happy git libffi.dev ]
133133
)
134134
;
135135

Diff for: flake.lock

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

Diff for: flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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:hsyl20/cabal?ref=hsyl20/per-file-extra-source-options";
8+
inputs.cabal.url = "github:stable-haskell/cabal?ref=wip/make-build";
99
inputs.cabal.flake = false;
1010

1111
outputs = { self, nixpkgs, flake-utils, haskellNix, iohk-nix, ... }:

0 commit comments

Comments
 (0)