From 3d693634b5dbb284a4c4712b45215005287bb92c Mon Sep 17 00:00:00 2001
From: David Barroso <dbarrosop@dravetech.com>
Date: Sat, 10 Dec 2022 13:23:15 +0100
Subject: [PATCH] fix nix build on Darwin

---
 flake.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/flake.nix b/flake.nix
index 15c82b7..4cfe7d9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,6 +19,10 @@
             name = "rustlings";
             version = "5.2.1";
 
+            buildInputs = with pkgs; lib.optionals stdenv.isDarwin [
+              darwin.apple_sdk.frameworks.CoreServices
+            ];
+
             src = with pkgs.lib; cleanSourceWith {
               src = self;
               # a function that returns a bool determining if the path should be included in the cleaned source