Merge pull request #279493 from adamcstephens/squeezelite/1465

squeezelite: 1.9.9.1463 -> 2.0.0.1465, RPI GPIO support
This commit is contained in:
Adam C. Stephens 2024-01-13 18:02:24 -05:00 committed by GitHub
commit c13348cde7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, flac , flac
, libgpiod
, libmad , libmad
, libpulseaudio , libpulseaudio
, libvorbis , libvorbis
@ -44,13 +45,13 @@ stdenv.mkDerivation {
pname = binName; pname = binName;
# versions are specified in `squeezelite.h` # versions are specified in `squeezelite.h`
# see https://github.com/ralph-irving/squeezelite/issues/29 # see https://github.com/ralph-irving/squeezelite/issues/29
version = "1.9.9.1463"; version = "2.0.0.1465";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ralph-irving"; owner = "ralph-irving";
repo = "squeezelite"; repo = "squeezelite";
rev = "c2534dc4139f3635ff7aed49b90ff03c43723dd9"; rev = "6de9e229aa4cc7c3131ff855f3ead39581127090";
hash = "sha256-MTGeF62jb7auOtUDougWZz7VJUNCBD/QL9jfDB7UmQE="; hash = "sha256-qSRmiX1+hbsWQsU9cRQ7QRkdXs5Q6aE7n7lxZsx8+Hs=";
}; };
buildInputs = [ flac libmad libvorbis mpg123 ] buildInputs = [ flac libmad libvorbis mpg123 ]
@ -62,7 +63,8 @@ stdenv.mkDerivation {
++ optional ffmpegSupport ffmpeg ++ optional ffmpegSupport ffmpeg
++ optional opusSupport opusfile ++ optional opusSupport opusfile
++ optional resampleSupport soxr ++ optional resampleSupport soxr
++ optional sslSupport openssl; ++ optional sslSupport openssl
++ optional (stdenv.isAarch32 or stdenv.isAarch64) libgpiod;
enableParallelBuilding = true; enableParallelBuilding = true;
@ -81,7 +83,8 @@ stdenv.mkDerivation {
++ optional portaudioSupport "-DPORTAUDIO" ++ optional portaudioSupport "-DPORTAUDIO"
++ optional pulseSupport "-DPULSEAUDIO" ++ optional pulseSupport "-DPULSEAUDIO"
++ optional resampleSupport "-DRESAMPLE" ++ optional resampleSupport "-DRESAMPLE"
++ optional sslSupport "-DUSE_SSL"; ++ optional sslSupport "-DUSE_SSL"
++ optional (stdenv.isAarch32 or stdenv.isAarch64) "-DRPI";
env = lib.optionalAttrs stdenv.isDarwin { env = lib.optionalAttrs stdenv.isDarwin {
LDADD = "-lportaudio -lpthread"; LDADD = "-lportaudio -lpthread";