Skip to content

Commit

Permalink
feat: bump Xcode version
Browse files Browse the repository at this point in the history
  • Loading branch information
birros committed Dec 12, 2024
1 parent 31a590a commit c5119f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
run: nix config show

- name: Xcode version
run: /Applications/Xcode_16.0.0.app/Contents/Developer/usr/bin/xcodebuild -version
run: /Applications/Xcode_16.1.0.app/Contents/Developer/usr/bin/xcodebuild -version

# See ${workspace}/nix/overlays/xcode.md
- name: Set up Xcode in Nix store
run: |
XCODE_APP=$(realpath /Applications/Xcode_16.0.0.app)
NIX_STORE_PATH="/nix/store/9irb2b36sn0693q7x2l554inm81vb2g6-Xcode.app"
HASH="sha256:e3ebfbc4f45488d6a8dd950d03da2d23a23659f490b440f5f59f8c28dbe5282e"
XCODE_APP=$(realpath /Applications/Xcode_16.1.0.app)
NIX_STORE_PATH="/nix/store/v92p4w6nxhyhq6lv0maq5cbb59mbxw5b-Xcode.app"
HASH="sha256:d63c91255c8e98603b7f1470067c5225ab673850eed35449f5a0105c936e581c"
sudo cp -a $XCODE_APP $NIX_STORE_PATH
sudo sqlite3 /nix/var/nix/db/db.sqlite "INSERT INTO ValidPaths (path,hash,registrationTime) VALUES ('$NIX_STORE_PATH','$HASH',$(date +%s))"
Expand Down
6 changes: 3 additions & 3 deletions nix/overlays/xcode.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
final: prev: {
darwin = prev.darwin.overrideScope (
final: prev: {
xcode_16_0 = prev.xcode.overrideAttrs (prev: {
outputHash = "sha256-4+v7xPRUiNao3ZUNA9otI6I2WfSQtED19Z+MKNvlKC4=";
xcode_16_1 = prev.xcode.overrideAttrs (prev: {
outputHash = "sha256-1jyRJVyOmGA7fxRwBnxSJatnOFDu01RJ9aAQXJNuWBw=";
});
xcode = final.xcode_16_0;
xcode = final.xcode_16_1;
}
);
}

0 comments on commit c5119f0

Please sign in to comment.