anchor.diff:      ]
       ++ lib.optional (! sambaSupport) "--disable-samba"
       ++ lib.optional vdpauSupport "--enable-vdpau"
  -    ++ lib.optional pulseSupport "--enable-pulse";
  +    ++ lib.optional pulseSupport "--enable-pulse"
  +    ++ lib.optional rtmpSupport "--enable-rtmp";
   
       postInstall = ''
         for p in $(ls $out/bin/) ; do
  
positive.code: , samba ? null, sambaSupport ? true
  , libmicrohttpd
  # TODO: would be nice to have nfsSupport (needs libnfs library)
  # TODO: librtmp
  , libvdpau ? null, vdpauSupport ? true
  , pulseaudio ? null, pulseSupport ? true
  , libcec ? null, cecSupport ? true
  
negative.code:           --prefix LD_LIBRARY_PATH ":" "${systemd}/lib" \
            --prefix LD_LIBRARY_PATH ":" "${libmad}/lib" \
            --prefix LD_LIBRARY_PATH ":" "${libvdpau}/lib" \
            --prefix LD_LIBRARY_PATH ":" "${libcec}/lib" \
            --prefix LD_LIBRARY_PATH ":" "${rtmpdump}/lib"
        done
      '';
  
  