Skip to content

Commit

Permalink
Fix nix-shell for macOS (ocamllabs#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
3Rafal authored May 28, 2023
1 parent f85536c commit 6a2a211
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ let
args = {
inherit (pkgs.ocaml-ng.ocamlPackages_4_14) ocaml;
selection = ./opam-selection.nix;
override = {pkg, selection}: {
dune = super: super.overrideAttrs (attrs: {
buildInputs =
(attrs.buildInputs or [])
++ pkgs.lib.optionals stdenv.isDarwin
[ pkgs.darwin.apple_sdk.frameworks.CoreServices];
});
};
src =
let
default = builtins.filterSource (path: type:
Expand Down

0 comments on commit 6a2a211

Please sign in to comment.