rustlings: add darwin support by adding CoreServices to buildInputs

This commit is contained in:
Mastermindaxe 2024-09-03 16:47:17 +02:00
parent 387fbb7a4b
commit 906e5696a6

View File

@ -1,5 +1,7 @@
{
lib,
stdenv,
darwin,
rustPlatform,
fetchFromGitHub,
pkg-config,
@ -34,6 +36,8 @@ rustPlatform.buildRustPackage {
makeWrapper
];
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreServices ]);
postFixup = ''
wrapProgram $out/bin/rustlings --suffix PATH : ${
lib.makeBinPath [