We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ece3723 + a015a1f commit dfaa4cbCopy full SHA for dfaa4cb
pkgs/development/compilers/kind2/default.nix
@@ -1,8 +1,9 @@
1
-{ lib
2
-, rustPlatform
3
-, fetchCrate
4
-, stdenv
5
-, darwin
+{
+ lib,
+ rustPlatform,
+ fetchCrate,
+ stdenv,
6
+ darwin,
7
}:
8
9
rustPlatform.buildRustPackage rec {
@@ -16,6 +17,13 @@ rustPlatform.buildRustPackage rec {
16
17
18
cargoHash = "sha256-KzoEh/kMKsHx9K3t1/uQZ7fdsZEM+v8UOft8JjEB1Zw=";
19
20
+ postPatch = ''
21
+ substituteInPlace src/main.rs \
22
+ --replace-fail "#![feature(panic_info_message)]" ""
23
24
+ --replace-fail "e.message().unwrap()" "e.payload()"
25
+ '';
26
+
27
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
28
darwin.apple_sdk_11_0.frameworks.Security
29
];
0 commit comments