leetcode-cli: fix build failure on macOS (#348049)

This commit is contained in:
Aleksana 2024-10-27 11:58:46 +08:00 committed by GitHub
commit 41a23bff77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,10 @@ rustPlatform.buildRustPackage rec {
openssl
dbus
sqlite
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd leetcode \