Skip to content

Commit dfaa4cb

Browse files
authored
kind2: fix build (#356245)
2 parents ece3723 + a015a1f commit dfaa4cb

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pkgs/development/compilers/kind2/default.nix

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
{ lib
2-
, rustPlatform
3-
, fetchCrate
4-
, stdenv
5-
, darwin
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchCrate,
5+
stdenv,
6+
darwin,
67
}:
78

89
rustPlatform.buildRustPackage rec {
@@ -16,6 +17,13 @@ rustPlatform.buildRustPackage rec {
1617

1718
cargoHash = "sha256-KzoEh/kMKsHx9K3t1/uQZ7fdsZEM+v8UOft8JjEB1Zw=";
1819

20+
postPatch = ''
21+
substituteInPlace src/main.rs \
22+
--replace-fail "#![feature(panic_info_message)]" ""
23+
substituteInPlace src/main.rs \
24+
--replace-fail "e.message().unwrap()" "e.payload()"
25+
'';
26+
1927
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
2028
darwin.apple_sdk_11_0.frameworks.Security
2129
];

0 commit comments

Comments
 (0)