- Go to https://github.com/input-output-hk/plutus-apps/tags and take note of the latest
plutus-starter-devcontainer
tag and its commit hash. - Update the tag and/or hash in the following files:
.devcontainer/devcontainer.json
nix/sources.json
nix/pkgs/haskell/haskell.nix
cabal.project
- Copy over most of https://github.com/input-output-hk/plutus-apps/blob/main/cabal.project into
cabal.project
- Copy over the
sha256map
values from https://github.com/input-output-hk/plutus-apps/blob/main/nix/pkgs/haskell/haskell.nix intonix/pkgs/haskell/haskell.nix
(but leave the first line that you just changed in step 2). To get the right hash value forplutus-apps
, change one digit, then runnix-shell
. You will get an error that shows the correct hash. - It’s likely that the code for the guessing game needs to be changed; luckily, you can copy the source from https://github.com/input-output-hk/plutus-apps/blob/main/plutus-playground-server/usecases/Game.hs roughly, and it should work.
- Test the different parts:
- VSCode
- You need to make sure to rebuild the image
- Then, once in VSCode, do
cabal build
andcabal test
, and then make sure HLS works
- nix
nix-shell
cabal build
/cabal test
- VSCode