Skip to content

Commit

Permalink
Add apple sdk libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Jul 26, 2024
1 parent baf89fb commit 72c2d9d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- run: mix test --trace

macos-precompiled:
runs-on: macos-14
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
Expand Down
34 changes: 34 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 19 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, ... }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
inherit (nixpkgs.lib) optional;
pkgs = import nixpkgs { inherit system; };

sdk = with pkgs;
lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
]);

in {
devShell = pkgs.mkShell {
buildInputs =
[ pkgs.elixir sdk ];
};
});
in
{
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
elixir
];
};
});
};

}

0 comments on commit 72c2d9d

Please sign in to comment.