Setting up Plutus (Cardano Plutus Pioneer Program)

Setting up Plutus (Cardano Plutus Pioneer Program)

Some basic steps on setting up Plutus on Ubuntu.

1) Make sure you have git installed sudo apt-get install git

2) Clone Plutus git clone git@github.com:input-output-hk/plutus.git

The following steps can be found here (https://nixos.org/learn.html)

3) Install Nix `curl -L https://nixos.org/nix/install | sh`

4) Make sure nix command is there, if not you might have todo this . /home/dimitry/.nix-profile/etc/profile.d/nix.sh

6) Edit config sudo pico /etc/nix/nix.conf. You might need to create this file.

7) Add the following two lines to the file /etc/nix/nix.conf.

substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
Two lines that need to be in you nix.conf file

8) From the plutus git directory, you can build using the following command nix build -f default.nix docs.papers.eutxo. This will build the Plutus core.

9) Make sure nix-shell command works from the git plutus folder.