@@ -1,4 +1,4 @@
1−{ cmake, fetchFromGitHub, lib, rustPlatform }:
1+{ lib, rustPlatform, fetchFromGitHub, fetchpatch, cmake }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "lunatic";
@@ -11,7 +11,17 @@ rustPlatform.buildRustPackage rec {
1111 sha256 = "1dz8v19jw9v55p3mz4932v6z24ihp6wk238n4d4lx9xj91mf3g6r";
1212 };
1313
14− cargoSha256 = "1rkxl27l6ydmcq3flc6qbnd7zmpkfmyc86b8q4pi7dwhqnd5g70g";
14+ cargoPatches = [
15+ # NOTE: remove on next update
16+ # update dependencies to resolve incompatibility with rust 1.56
17+ (fetchpatch {
18+ name = "update-wasmtime.patch";
19+ url = "https://github.com/lunatic-solutions/lunatic/commit/cd8db51732712c19a8114db290882d1bb6b928c0.patch";
20+ sha256 = "sha256-eyoIOTqGSU/XNfF55FG+WrQPSMvt9L/S/KBsUQB5z1k=";
21+ })
22+ ];
23+
24+ cargoSha256 = "sha256-yoG4gCk+nHE8pBqV6ND9NCegx4bxbdGEU5hY5JauloM=";
1525
1626 nativeBuildInputs = [ cmake ];
1727