Skip to content

Claude/nix openwrt build env i v7jv#1376

Open
aparcar wants to merge 5 commits intomainfrom
claude/nix-openwrt-build-env-iV7jv
Open

Claude/nix openwrt build env i v7jv#1376
aparcar wants to merge 5 commits intomainfrom
claude/nix-openwrt-build-env-iV7jv

Conversation

@aparcar
Copy link
Owner

@aparcar aparcar commented Jan 17, 2026

Thanks for your contribution to OpenWrt!

To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches

Please remove this message before posting the pull request.

aparcar and others added 5 commits January 15, 2026 10:12
Run this only when a PR is created, so either author or anyone who can
edit the PR message (all maintainers) can trigger such build.

Instead of maintaining it in the main repository, move it to the
external repository to bloat this repository less with further CI
commits.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Paul Spooren <mail@aparcar.org>
Add Nix configuration files to create reproducible Docker containers
with all OpenWrt build dependencies. This includes:

- openwrt-build-env.nix: Ubuntu-based Docker image using Nix
- nix/docker-image.nix: Pure Nix-based Docker image (fully reproducible)
- flake.nix: Modern Nix flakes configuration
- shell.nix: Development shell for direct use without Docker
- Dockerfile: Standard Docker build for users without Nix

Tool versions are extracted from the tools/ folder, including:
autoconf 2.72, automake 1.18.1, cmake 4.2.0, ninja 1.13.2,
meson 1.6.1, ccache 4.12.1, llvm-bpf 21.1.6, and 60+ more.

Also adds Nix build artifacts to .gitignore.
Remove Ubuntu-based files and keep only pure Nix Docker image with
OpenWrt build dependencies and tools from tools/ folder.

Files:
- nix/docker-image.nix: Pure Nix Docker image
- flake.nix: Nix flakes (docker + dev shell)
- shell.nix: Development shell

Removed Ubuntu-based Dockerfile and openwrt-build-env.nix as requested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants