From d0294787438aed7e402833be247101e5851f068c Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 22 Oct 2023 02:12:00 +0000 Subject: [PATCH] Add flake shell for dev with guile --- flake.nix | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 955f3f24..a6b4d60f 100644 --- a/flake.nix +++ b/flake.nix @@ -22,11 +22,8 @@ in rec { formatter = pkgs.nixfmt; - devShells.rustybar = pkgs.mkShellNoCC { + devShells.mes-m2 = pkgs.mkShellNoCC { packages = with pkgs; [ - perl - guile - gnumake minimal-bootstrap.kaem minimal-bootstrap.mescc-tools ]; @@ -34,8 +31,25 @@ CC = "M2-Planet"; stage0_cpu = stage0Arch; mes_cpu = mesArch; + + shellHook = '' + export GUILE_LOAD_PATH=$PWD/mes/module:$PWD/module:${pkgs.minimal-bootstrap.mes.nyacc.guilePath} + ''; }; - devShells.default = devShells.rustybar; + + devShells.mes-guile = pkgs.mkShell { + packages = with pkgs; [ + perl + guile + gnumake + minimal-bootstrap.mescc-tools + ]; + + shellHook = '' + export GUILE_LOAD_PATH=$PWD/module:${pkgs.minimal-bootstrap.mes.nyacc.guilePath} + ''; + }; + devShells.default = devShells.mes-m2; })); }