{"id":13802682,"url":"https://github.com/jonahbron/micropython-builder","last_synced_at":"2025-04-06T19:54:20.890Z","repository":{"id":229543651,"uuid":"776997025","full_name":"jonahbron/micropython-builder","owner":"jonahbron","description":"A Nix flake for building MicroPython","archived":false,"fork":false,"pushed_at":"2024-04-29T07:07:09.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T05:48:34.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonahbron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-25T01:34:59.000Z","updated_at":"2024-10-10T04:05:53.000Z","dependencies_parsed_at":"2024-04-14T05:00:29.233Z","dependency_job_id":"c3c41496-3da5-4c0e-9edc-62af9df2d857","html_url":"https://github.com/jonahbron/micropython-builder","commit_stats":null,"previous_names":["jonahbron/micropython-builder"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahbron%2Fmicropython-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahbron%2Fmicropython-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahbron%2Fmicropython-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahbron%2Fmicropython-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonahbron","download_url":"https://codeload.github.com/jonahbron/micropython-builder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543608,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:50.218Z","updated_at":"2025-04-06T19:54:20.867Z","avatar_url":"https://github.com/jonahbron.png","language":"Nix","readme":"# MicroPython Builder\n\nThis is a flake that knows how to build and flash MicroPython.  It can either\nbe invoked directly to build a basic firmware, or it can be used as an input\nflake and be used as a tool to build a custom firmware.\n\n```bash\nnix run github:jonahbron/micropython-builder#flash-esp32c3-generic\n```\n\n\u003e [!WARNING]\n\u003e Because a network connection is currently _required_ to build firmware for\n\u003e ESP32 devices, flashing directly from the terminal will only work on non-x86_64\n\u003e systems.  You must create your own flake with your own sha256.\n\u003e\n\u003e [Builds fail without Internet access (IDFGH-12120) (PACMAN-808) #54][esp-idf]\n\nSee [examples](./examples) directory or a [real project][usage] for how to use\nthis builder in your own flake. The examples are also a flake and can be run\ndirectly.\n\n```bash\nnix build ./examples#\n```\n\n## Currently Supported Ports/Boards\n\n\u003e [!NOTE]\n\u003e Contributions of other MicroPython ports/boards are extremely welcome!\n\n- [x] [ESP32][esp32]\n  - [x] [ESP32_GENERIC_C3][esp32c3-generic]\n\n## TODO\n- [x] Flake package that can be run like `nix build .#esp32c3-generic`\n  - [x] Default output is firmware.bin\n  - [ ] Other output portions can be accessed too `nix build .#esp32GenericC3.bootloader`\n- [x] Flake package that can be run like `nix run .#flash-esp32-generic`\n- [x] Flake library that can be called like `buildMicroPythonFirmware`\n  - [x] Allows specifying the port/board\n  - [x] Accepts arguments pointing to manifest.py\n  - [x] Accepts arguments pointing to user_c_modules\n  - [x] Allow patch phase script\n  - [ ] Allow overriding the micropython source\n  - [ ] Allow overriding the micropython-lib source\n- [x] Flake library that can be called like `flashMicroPythonFirmware`\n- [x] Make interface more ergonomic, require less knowledge\n- [ ] Make fixed-output derivations optional\n- [ ] Factor out common ESP32 expressions\n- [ ] Allow generating firmware with LittleFS partitions/other partition table customizations\n- [ ] Add nix formatter\n- [ ] Flake template\n- [ ] GitHub Action that attempts to regularly update dependencies\n- [ ] Contribute into nixpkgs?\n\n[esp-idf]: https://github.com/espressif/idf-component-manager/issues/54\n[usage]: https://git.sr.ht/~jonahbron/doorbell/tree/17a3b500eadaea10a203baa3f078df4f40ce0f45/item/firmware.nix\n[esp32]: https://github.com/micropython/micropython/tree/master/ports/esp32\n[esp32c3-generic]: https://github.com/micropython/micropython/tree/master/ports/esp32/boards/ESP32_GENERIC_C3\n","funding_links":[],"categories":["Development"],"sub_categories":["Firmware"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonahbron%2Fmicropython-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonahbron%2Fmicropython-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonahbron%2Fmicropython-builder/lists"}