diff --git a/flake.nix b/flake.nix index 51399a4..4cc0b81 100644 --- a/flake.nix +++ b/flake.nix @@ -114,18 +114,8 @@ mkShell { inputsFrom = [ example-spa-elm-app ]; buildInputs = [ - nodejs_22 - ]; - - shellHook = '' - if [ ! -d "$PWD/frontend/node_modules/elm-go" ]; then - echo "Installing elm-go..." - cd "$PWD/frontend" - ${nodejs_22}/bin/npm install elm-go - cd .. - fi - export PATH="$PWD/frontend/node_modules/.bin:$PATH" - ''; + elmPackages.elm-live + ]; }; } ); diff --git a/frontend/Makefile b/frontend/Makefile index b32bdbf..e17f893 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -21,7 +21,7 @@ endif serve: ifeq ($(DEBUG),1) - elm-go src/Main.elm --port=8000 --dir=../public --start-page=index.html -- --output=../public/elm.min.js + elm-live src/Main.elm --port=8000 --dir=../public --start-page=index.html -- --output=../public/elm.min.js else ifeq ($(RELEASE),1) $(error Cannot use serve target with RELEASE=1) endif