Nix main from resources dir.