Update build scripts for NixOS.