Skip to content

Commit

Permalink
Update cross-js.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz Angermann <[email protected]>
  • Loading branch information
yvan-sraka and angerman authored Apr 4, 2024
1 parent a74ae2c commit 1c3996d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cross-js.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ pkgs.mkShell ({
inherit (quirks) CABAL_PROJECT_LOCAL_TEMPLATE;

shellHook =
let flavor = ''${compiler-nix-name}-js${
(if !withHLS && !withHlint then "-minimal" else "") +
(if withIOG then "-iog" else "")
}''; in with pkgs; ''
with pkgs;
let flavor = "${compiler-nix-name}-js"
+ lib.optionalString (!withHLS && !withHlint) "-minimal"
+ lib.optionalString withIOG "-iog"
;
in ''
export PS1="\[\033[01;33m\][\w]$\[\033[00m\] "
${figlet}/bin/figlet -f rectangles 'IOG Haskell Shell'
${figlet}/bin/figlet -f small "*= JS edition =*"
Expand Down

0 comments on commit 1c3996d

Please sign in to comment.