From 1c3996df67cb154e36db35fca82cadb1d118dc4f Mon Sep 17 00:00:00 2001 From: Yvan Sraka Date: Thu, 4 Apr 2024 10:02:32 +0200 Subject: [PATCH] Update cross-js.nix Co-authored-by: Moritz Angermann --- cross-js.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cross-js.nix b/cross-js.nix index 18adde7..1f18f9e 100644 --- a/cross-js.nix +++ b/cross-js.nix @@ -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 =*"