Comments (2)
The only way I can test the macOS support is by using the free GitHub runners, and apparently the current shell.nix
works there (e.g., the latest run at the moment is https://github.com/sigprof/qmk-nix-support/actions/runs/6674858226/job/18142204580). But the macOS version used by GitHub for macos-latest
runners is apparently still 12.7; the Nix version is the default for cachix/install-nix-action
, which is 2.17.0 at the moment.
However, if your Mac is actually based on Apple Silicon, the existing shell.nix
probably won't work (in fact, I can reproduce a similar evaluation error by trying to run nix-shell --system aarch64-darwin
). The Nixpkgs snapshot that's used currently is probably too old to have proper aarch64-darwin
support.
I also have some code that uses a more recent Nixpkgs snapshot (https://github.com/sigprof/nix-devenv-qmk); apparently the evaluation for aarch64-darwin
also fails with that code, but with a much more clearer error message:
error: Package ‘avr-stage-final-gcc-wrapper-8.5.0’ in /nix/store/apfgz0vlvsmlifhqh6x0k2aih1jw3ikz-nixpkgs-src/pkgs/build-support/cc-wrapper/default.nix:628 is not available on the requested hostPlatform:
hostPlatform.config = "aarch64-apple-darwin"
package.meta.platforms = [
"i686-cygwin"
"x86_64-cygwin"
"x86_64-darwin"
"i686-darwin"
"aarch64-darwin"
"armv7a-darwin"
"i686-freebsd13"
"x86_64-freebsd13"
"x86_64-solaris"
"aarch64-linux"
"armv5tel-linux"
"armv6l-linux"
"armv7a-linux"
"armv7l-linux"
"i686-linux"
"loongarch64-linux"
"m68k-linux"
"microblaze-linux"
"microblazeel-linux"
"mips-linux"
"mips64-linux"
"mips64el-linux"
"mipsel-linux"
"powerpc64-linux"
"powerpc64le-linux"
"riscv32-linux"
"riscv64-linux"
"s390-linux"
"s390x-linux"
"x86_64-linux"
"aarch64-netbsd"
"armv6l-netbsd"
"armv7a-netbsd"
"armv7l-netbsd"
"i686-netbsd"
"m68k-netbsd"
"mipsel-netbsd"
"powerpc-netbsd"
"riscv32-netbsd"
"riscv64-netbsd"
"x86_64-netbsd"
"i686-openbsd"
"x86_64-openbsd"
"x86_64-redox"
]
package.meta.badPlatforms = [
"aarch64-darwin"
]
, refusing to evaluate.
So it seems that the underlying reason for the error is that at least the AVR cross toolchain is broken on aarch64-darwin
. Adding --arg avr false
may help if you don't actually need AVR support. Another thing you may try is changing pkgsCross.avr.buildPackages.gcc8
to pkgsCross.avr.buildPackages.gcc
(this way you would get avr-gcc 12.3.0, which may produce larger binaries than 8.5.0, but it might be good enough).
And yet another option that you may try is to use the Rosetta emulation: nix-shell --system x86_64-darwin
.
from qmk_firmware.
I am indeed on apple silicon! --arg avr false
is something I tried since I didn't need it, but didn't work out. But using your devenv (with --arg avr false
) worked like a charm, many thanks for getting me unblocked.
from qmk_firmware.
Related Issues (20)
- [Bug] Error when flashing skyloong gk61 pro: [platforms/chibios/flash.mk:98: flash] Error 74 HOT 4
- [Bug] RGBLIGHT_SLEEP only turns off master half on split keyboard HOT 5
- Add Support for cidoo abm066[Feature Request] HOT 2
- [Bug] FORCE_LAYOUT ignored with qmk command when using external userspace HOT 1
- [Bug] keycode LALT_T(KC_UNDS) prints - instead of _ when tapped HOT 1
- Feker IK65 not in the list of qmk.fm HOT 3
- Issues with Keychron Q3 Pro (ISO Knob Version) Firmware, Bluetooth Connectivity, and Configuration Software HOT 2
- [Feature Request] Add Killer Whale to Configurator HOT 1
- [Bug] * LED_MATRIX_DRIVER=CKLED2001 is not a valid matrix type HOT 2
- [Bug] Think 6.5 v2 hotswap firmware: KC_BSPC and KC_LSFT keys don't work
- [Bug] Key overrides are not performed on keys processed as a tap of a mod-tap HOT 1
- [Bug] Lily58 slave side intermittenly freezes / doesnt respond HOT 7
- [Feature Request] Allow forcing individual community layouts in `qmk.json` for `userspace-compile` and GitHub Actions HOT 4
- [Bug] make not working when compiling keymaps in userspace, whilst qmk compile does HOT 1
- How to set and press and lift it to different keys HOT 1
- [Bug] Retro tapping not triggered after release of dual function key during key roll over from previous keys HOT 1
- [Feature Request] [Documentation] Add Instruction to add dfu-programmer copr on Fedora
- [Bug] One-shot layer stuck on held with nested one-shot layer
- [Bug] Encoder retains base layer behavior on another layer
- [Feature Request] Make Combos ignore Mod-Tap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmk_firmware.