Skip to content

Commit

Permalink
Try to fix Cairo Nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Sep 6, 2024
1 parent 5217af9 commit f3949bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
test-contracts:
name: Build MacOS Nix dependencies
runs-on: macos-latest
runs-on: macos-14
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -27,4 +27,5 @@ jobs:

- name: Run Nix build
run: |
nix build -L .#cairo
nix develop -c true
6 changes: 3 additions & 3 deletions flake.lock

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

5 changes: 5 additions & 0 deletions nix/cairo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ let
cargoHash = "sha256-piabK7UNyt2hWoqR5IDnCZoo8+VvSthSao3sQXKjE0o=";

OPENSSL_NO_VENDOR = 1;
AARCH64_APPLE_DARWIN_OPENSSL_NO_VENDOR = 1;
PKG_CONFIG_PATH = "${nixpkgs.openssl.dev}/lib/pkgconfig";

nativeBuildInputs = [
nixpkgs.libiconv
nixpkgs.pkg-config
];

buildInputs = nixpkgs.lib.optionals nixpkgs.stdenv.isDarwin [
nixpkgs.libiconv
nixpkgs.pkg-config
nixpkgs.darwin.apple_sdk.frameworks.Security
nixpkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];
};
Expand Down

0 comments on commit f3949bb

Please sign in to comment.