Nix upstreaming - Adding build files and supporting scripts