Following environment allows compiling both:
nix-shell -p cmake openssl pkgconfig gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-ugly gst_all_1.gst-plugins-bad pcre.dev avahi-compat gst_all_1.gst-libav libplist libunwind
However, I'm unable to connect with iPad or iPhone even after opening all ports on NixOS. WIP
This was exactly what i needed. thanks!