Skip to content

Commit

Permalink
Add QEMU and Llvm lit
Browse files Browse the repository at this point in the history
  • Loading branch information
supersven committed Apr 14, 2023
1 parent 94954f6 commit 96f1d10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ghc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ in
, withGrind ? !((pkgsFor nixpkgs system).valgrind.meta.broken or false)
, withEMSDK ? false # load emscripten for js-backend
, crossTarget ? null # a `nixpkgs.pkgsCross` record, e.g. `riscv64`
, withQEMU ? false
, withLlvmLit ? false # for llvm lit tests
}:

let
Expand Down Expand Up @@ -124,13 +126,20 @@ let
++ optional withIde (pkgs-unstable.haskell-language-server.override { supportedGhcVersions = [ (builtins.replaceStrings [ "." ] [ "" ] ghc.version) ]; })
++ optional withIde clang-tools # N.B. clang-tools for clangd
++ optional withDtrace linuxPackages.systemtap
++ optional withLlvmLit lit
++ (if (! stdenv.isDarwin)
then [ pxz ]
else [
libiconv
darwin.libobjc
darwin.apple_sdk.frameworks.Foundation
])
++ optional withQEMU (
if crossTarget == null then
[ qemu ]
else
[ pkgsCross.${crossTarget}.buildPackages.buildPackages.qemu ]
)
);

happy =
Expand Down

0 comments on commit 96f1d10

Please sign in to comment.