Skip to content

Commit

Permalink
Add a workaround for plutus-tx-plugin
Browse files Browse the repository at this point in the history
Looks like `plutus-tx-plugin` depends on `ghc` package and it seems that
new dependencies brought in with `cardano-crypto-class-2.2` create a
conflict due to `stm` version used with `ghc-9.6` being incompatible.
  • Loading branch information
lehins committed Dec 11, 2024
1 parent d6e1c0d commit acf5734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ source-repository-package
-- !WARNING!:
-- MAKE SURE THIS POINTS TO A COMMIT IN `MAlonzo-code` BEFORE MERGE!
subdir: generated
--sha256: sha256-by921yC1MaZI58kyrtEGGKqmt9jMnVsPLfQtP4raJPw=
tag: be51adff014214c15fed718d396bb8a6d955f9e1

--sha256: sha256-by921yC1MaZI58kyrtEGGKqmt9jMnVsPLfQtP4raJPw=
-- NOTE: If you would like to update the above, look for the `MAlonzo-code`
-- branch in the `formal-ledger-specifications` repo and copy the SHA of
-- the commit you need. The `MAlonzo-code` branch functions like an alternative
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
'';

shell = {
# Due to plutus-tx-plugin being a bit special, we need to augment the default package selection.
packages = ps: builtins.attrValues (nixpkgs.haskell-nix.haskellLib.selectLocalPackages ps) ++ [ps.plutus-tx-plugin];

# force LANG to be UTF-8, otherwise GHC might choke on UTF encoded data.
shellHook = ''
Expand Down

0 comments on commit acf5734

Please sign in to comment.