NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.15k stars 14.17k forks source link

strawberry: streaming from Subsonic with Gstreamer over TLS fails due to missing glib-networking #112334

Closed DeeUnderscore closed 3 years ago

DeeUnderscore commented 3 years ago

Describe the bug The Strawberry music player, when configured with the Gstreamer backend, won't play music from a Subsonic-compatible server if the server is behind https.

To Reproduce Steps to reproduce the behavior:

  1. Run current nixpkgs.strawberry
  2. Configure backend to Gstreamer
  3. Add a Subsonic server behind an https address
  4. Try to play something from the Subsonic server

Expected behavior Strawberry should be able to stream music from a Subsonic server behind https.

Additional context Downloading the track list from the server works fine, and playing via the VLC backend works fine as well. When Gstreamer is selected, and you push play, an error is printed to stdout with a hint:

ErrorMessageReceived ID: 3 Domain: 2031 Code: 5 Debug: "../ext/soup/gstsouphttpsrc.c(1382): gst_soup_http_src_parse_status (): /GstPlayBin:playbin-10/GstURIDecodeBin:uridecodebin2/GstSoupHTTPSrc:source:\nTLS/SSL support not available; install glib-networking (6)

Rebuilding with glib-networking added to buildInputs did not work for me, but I can set an environment variable and run it like GIO_EXTRA_MODULES=/nix/store/mbsp73ypp5mg2wckr4vrmbn47wlphjr2-glib-networking-2.66.0/lib/gio/modules strawberry and it'll run correctly (provided glib-networking is under that path, obviously). I don't know if and how to add this to the wrapper, though.

This missing dependency seems to have been a problem for people on other OSes as well:
strawberrymusicplayer/strawberry#266

Notify maintainers @peterhoeg

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
Artturin commented 3 years ago

130966

you should update your channels since 20.09 is eol and the pr will not be backported to that only 21.05