Skip to content

Commit 97a1e02

Browse files
committed
dev: add additional needed dependencies for Mac OS
1 parent d8a9f7a commit 97a1e02

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

flake.nix

+8-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
(builtins.readFile ./scripts/${scriptFile}))
8888
)
8989
scriptFiles;
90+
systemSpecificDependencies =
91+
if system == flake-utils.lib.system.x86_64-darwin
92+
then [
93+
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
94+
pkgs.darwin.apple_sdk.frameworks.CoreFoundation
95+
]
96+
else [];
9097
in
9198
with pkgs; {
9299
devShells.default = mkShell {
@@ -119,7 +126,7 @@
119126
# Nix formatter
120127
alejandra.defaultPackage.${system}
121128
]
122-
++ scriptBins;
129+
++ scriptBins ++ systemSpecificDependencies;
123130

124131
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
125132
OSRD_DEV = "True";

0 commit comments

Comments
 (0)