diff options
author | figsoda <figsoda@pm.me> | 2021-11-15 08:43:08 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-11-15 08:43:08 -0500 |
commit | ce6665dceef9873d1166afa2178b32a947591bf2 (patch) | |
tree | 05158bcade642ee0324b1b46eeaff64f5b7d43c0 /pkgs/development/interpreters/lunatic | |
parent | 0d67f33cbea744efd06b0309ecb36f84a082c827 (diff) |
lunatic: fix build
Diffstat (limited to 'pkgs/development/interpreters/lunatic')
-rw-r--r-- | pkgs/development/interpreters/lunatic/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/lunatic/default.nix b/pkgs/development/interpreters/lunatic/default.nix index 39e8323e194c7..c7c8a928ea8d7 100644 --- a/pkgs/development/interpreters/lunatic/default.nix +++ b/pkgs/development/interpreters/lunatic/default.nix @@ -1,4 +1,4 @@ -{ cmake, fetchFromGitHub, lib, rustPlatform }: +{ lib, rustPlatform, fetchFromGitHub, fetchpatch, cmake }: rustPlatform.buildRustPackage rec { pname = "lunatic"; @@ -11,7 +11,17 @@ rustPlatform.buildRustPackage rec { sha256 = "1dz8v19jw9v55p3mz4932v6z24ihp6wk238n4d4lx9xj91mf3g6r"; }; - cargoSha256 = "1rkxl27l6ydmcq3flc6qbnd7zmpkfmyc86b8q4pi7dwhqnd5g70g"; + cargoPatches = [ + # NOTE: remove on next update + # update dependencies to resolve incompatibility with rust 1.56 + (fetchpatch { + name = "update-wasmtime.patch"; + url = "https://github.com/lunatic-solutions/lunatic/commit/cd8db51732712c19a8114db290882d1bb6b928c0.patch"; + sha256 = "sha256-eyoIOTqGSU/XNfF55FG+WrQPSMvt9L/S/KBsUQB5z1k="; + }) + ]; + + cargoSha256 = "sha256-yoG4gCk+nHE8pBqV6ND9NCegx4bxbdGEU5hY5JauloM="; nativeBuildInputs = [ cmake ]; |