feat: install entire site using nix

This commit is contained in:
Youwen Wu 2025-02-16 12:43:27 -08:00 committed by Ananth Venkatesh
parent 21b946568d
commit 713d6d4486
Signed by: ananthv
GPG key ID: 4BB578E748CFE4FF

View file

@ -48,8 +48,10 @@
elm make src/Main.elm --output Main.js --optimize elm make src/Main.elm --output Main.js --optimize
''; '';
installPhase = '' installPhase = ''
mkdir $out mkdir -p $out/dist/elm
cp Main.js $out cp Main.js $out/dist/elm
sed 's/..compiled\/Main.js/\/elm\/Main.js/' src/index.html > $out/dist/index.html
cp -r assets $out/dist/assets
''; '';
}; };
}; };