Skip to main content

Environment Setup

Plinth is a subset of Haskell, so configuring the development environment for Plinth is similar to a regular Haskell environment setup. However, there are a few additional requirements:

  • Plinth supports a specific major version of GHC (currently 9.6).
  • You’ll need some specific packages, such as plutus-tx and plutus-tx-plugin, which are hosted on the Cardano Haskell Package repository (CHaP), rather than Hackage, Haskell's default package archive.
  • You'll also need a few C libraries such as secp256k1 and blst, which are required by the plutus-tx library.

The best way to setup your environment is with the plutus-tx-template repository. See its README for complete instructions on how to get up and running using Docker, Nix, or a custom approach.