tuic: fix build on darwin

This commit is contained in:
Elian Doran 2024-05-19 11:05:07 +03:00
parent d07b19dbbd
commit 90621f1d9d
No known key found for this signature in database

View File

@ -1,6 +1,8 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec{
@ -14,6 +16,10 @@ rustPlatform.buildRustPackage rec{
hash = "sha256-VoNr91vDqBlt9asT/dwCeYk13UNiDexNNiKwD5DSn8k=";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Security
]);
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';