nufmt: fix build on darwin

This commit is contained in:
Elian Doran 2024-05-18 15:58:38 +03:00
parent 9cc583b9d1
commit 5a1a9a662b
No known key found for this signature in database

View File

@ -1,8 +1,10 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
...
}:
rustPlatform.buildRustPackage rec {
@ -16,6 +18,10 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-BwKLl8eMCrqVt9PA5SHAXxu3ypP2ePcSuljKL+wSkvw=";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
IOKit
]);
cargoSha256 = "sha256-16Z20opeZpoa7h258um+grL3ktPmY4P0M/tqMTr5hYc=";
meta = with lib; {