Skip to content

Commit a015a1f

Browse files
committed
kind2: fix build
1 parent 479c243 commit a015a1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkgs/development/compilers/kind2/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ rustPlatform.buildRustPackage rec {
1717

1818
cargoHash = "sha256-KzoEh/kMKsHx9K3t1/uQZ7fdsZEM+v8UOft8JjEB1Zw=";
1919

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+
2027
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
2128
darwin.apple_sdk_11_0.frameworks.Security
2229
];

0 commit comments

Comments
 (0)