20 pulseaudioSupport ? false,
26 stdenv.mkDerivation rec {
30 src = fetchFromGitHub {
34 hash = "sha256-EJgpZz4PnXfge0rkVH1F7cah+i9AvDJVSUVqL7qChDM=";
41 # snapcast also supports building against tremor but as we have libogg, that's
57 ++ lib.optional pulseaudioSupport libpulseaudio
58 ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
59 ++ lib.optionals stdenv.hostPlatform.isDarwin [
64 TARGET = lib.optionalString stdenv.hostPlatform.isDarwin "MACOS";
66 # Upstream systemd unit files are pretty awful, so we provide our own in a
67 # NixOS module. It might make sense to get that upstreamed...
69 install -d $out/share/doc/snapcast
70 cp -r ../doc/* ../*.md $out/share/doc/snapcast
73 passthru.tests.snapcast = nixosTests.snapcast;
76 description = "Synchronous multi-room audio player";
77 homepage = "https://github.com/badaix/snapcast";
78 maintainers = with maintainers; [ fpletz ];
79 platforms = platforms.linux ++ platforms.darwin;
80 license = licenses.gpl3Plus;