Skip to content

Commit

Permalink
combine
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Jan 24, 2022
1 parent 9abc0ec commit ddc654e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions builder/comp-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ let
buildPhase = if stdenv.hostPlatform.isGhcjs then ''
runHook preBuild
# https://gitlab.haskell.org/ghc/ghc/issues/9221
$SETUP_HS build ${haskellLib.componentTarget componentId} ${lib.concatStringsSep " " setupBuildFlags}
$SETUP_HS build ${haskellLib.componentTarget componentId} ${lib.concatStringsSep " " (component.setupBuildFlags ++ setupBuildFlags)}
runHook postBuild
'' else ''
runHook preBuild
# https://gitlab.haskell.org/ghc/ghc/issues/9221
$SETUP_HS build ${haskellLib.componentTarget componentId} -j$(($NIX_BUILD_CORES > 4 ? 4 : $NIX_BUILD_CORES)) ${lib.concatStringsSep " " setupBuildFlags}
$SETUP_HS build ${haskellLib.componentTarget componentId} -j$(($NIX_BUILD_CORES > 4 ? 4 : $NIX_BUILD_CORES)) ${lib.concatStringsSep " " (component.setupBuildFlags ++ setupBuildFlags)}
runHook postBuild
''
;
Expand Down
2 changes: 1 addition & 1 deletion modules/plan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ let
default = def.ghcOptions or [];
};
planned = mkOption {
description = "Set to true by `plan-to-nix` for any component that was included in the `plan.json` file.";
description = "Set to true by `plan-to-nix` for any component that was included in the `plan.json` file.";
# This is here so that (rather than in componentOptions) so it can be set project wide for stack projects
type = bool;
default = def.planned or false;
Expand Down

0 comments on commit ddc654e

Please sign in to comment.