Skip to content

Commit

Permalink
Enable darwin target
Browse files Browse the repository at this point in the history
  • Loading branch information
IGI-111 committed May 27, 2024
1 parent 8bbeafd commit ff52163
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nix-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: cachix/install-nix-action@v27
- id: set-matrix
name: Generate Nix Matrix
run: |
Expand All @@ -29,5 +29,5 @@ jobs:
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: cachix/install-nix-action@v27
- run: nix build -L ".#${{ matrix.attr }}"
11 changes: 6 additions & 5 deletions flake.lock

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

22 changes: 17 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
flake-utils.url = "github:numtide/flake-utils";
crane.url = "github:ipetkov/crane";
crane.inputs.nixpkgs.follows = "nixpkgs";
nix-github-actions.url = "github:nix-community/nix-github-actions";
nix-github-actions.url = "github:IGI-111/nix-github-actions?ref=IGI-111/add-aarch64-darwin";
nix-github-actions.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
Expand Down Expand Up @@ -112,7 +112,16 @@
inherit pkgs;
buildInputs = with pkgs; [
openssl
darwin.libicov
darwin.libiconv
darwin.libobjc
# darwin.xcode
# darwin.apple_sdk.sdk
darwin.apple_sdk.Libsystem
# darwin.apple_sdk.frameworks
darwin.apple_sdk.frameworks.SystemConfiguration
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Cocoa
];
nativeBuildInputs = with pkgs; [
rustc
Expand All @@ -123,14 +132,17 @@
slint-lsp

pkg-config
uutils-coreutils
];
};
};
in
{
githubActions = nix-github-actions.lib.mkGithubMatrix { inherit (self) checks; };
}
// flake-utils.lib.eachSystem [ "x86_64-linux" ] (
system: buildPackageForSystem buildPackageDeps."${system}"
);
// flake-utils.lib.eachSystem [
"x86_64-linux"
# "x86_64-darwin"
"aarch64-darwin"
] (system: buildPackageForSystem buildPackageDeps."${system}");
}

0 comments on commit ff52163

Please sign in to comment.