This provides a Nix environment for OpenWRT Buildroot.
nix develop git+https://git.clerie.de/clerie/openwrt-buildroot-nix.git
OpenWRT buildroot seem to hardcode paths it found for dependencies. If the nix environment gets changed these paths change too. Clean the build environment to get it working again:
make dirclean