astro / nix-openwrt-imagebuilder

Build OpenWRT images in Nix derivations
MIT License
129 stars 16 forks source link

Build with flags? #24

Closed austinbutler closed 1 year ago

austinbutler commented 1 year ago

I want to have dropbear built with ECC enabled. There are options for this in make menuconfig, but actually getting the build to succeed on NixOS seems not easy. These are the options from make menuconfig:

CONFIG_DROPBEAR_ECC=y
CONFIG_DROPBEAR_ECC_FULL=y

So I'm wondering if there's a way to pass that to the build or somehow override the build of dropbear.

astro commented 1 year ago

The imagebuilder doesn't recompile anything but reuses the binary packages from downloads.openwrt.org.

I would prefer a proper OpenWRT build in Nix derivations, too. Implementation attempts are encouraged!

austinbutler commented 1 year ago

Leaving this here as a note.

Another alternative that may work if one can build their own package and wants to put that into the image: https://forum.openwrt.org/t/custom-build-package-inside-image-builder-image/40350/13