1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

shairport-sync: enable additional features (#353219)

This commit is contained in:
jopejoe1 2024-11-15 14:19:35 +01:00 committed by GitHub
commit 3de94975e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 74 additions and 1 deletions

View file

@ -0,0 +1,45 @@
{
autoreconfHook,
fetchFromGitHub,
lib,
stdenv,
testers,
unstableGitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "alac";
version = "0.0.7-unstable-2024-10-16";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "mikebrady";
repo = "alac";
rev = "1832544d27d01335d823d639b176d1cae25ecfd4";
hash = "sha256-xRWDeqyJ/BEaSWVlDXgaKIKJuBwM8kJDIATVTVaMn2k=";
};
nativeBuildInputs = [
autoreconfHook
];
# error: 'TARGET_OS_MAC' is not defined, evaluates to 0
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DTARGET_OS_MAC";
passthru = {
updateScript = unstableGitUpdater { };
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = {
description = "Apple Lossless Codec and Utility with Autotools";
homepage = "https://github.com/mikebrady/alac";
license = lib.licenses.asl20;
pkgConfigModules = [ "alac" ];
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ jopejoe1 ];
};
})

View file

@ -18,19 +18,31 @@
, libconfig
, libpulseaudio
, libjack2
, libsndfile
, libao
, libsoundio
, mosquitto
, pipewire
, soxr
, alac
, sndio
, enableAirplay2 ? false
, enableStdout ? true
, enableAlsa ? true
, enableSndio ? true
, enablePulse ? true
, enablePipe ? true
, enablePipewire ? true
, enableAo ? true
, enableJack ? true
, enableMetadata ? false
, enableSoundio ? true
, enableMetadata ? true
, enableMpris ? stdenv.hostPlatform.isLinux
, enableMqttClient ? true
, enableDbus ? stdenv.hostPlatform.isLinux
, enableSoxr ? true
, enableAlac ? true
, enableConvolution ? true
, enableLibdaemon ? false
}:
@ -70,10 +82,16 @@ stdenv.mkDerivation rec {
]
++ optional enableLibdaemon libdaemon
++ optional enableAlsa alsa-lib
++ optional enableSndio sndio
++ optional enableMqttClient mosquitto
++ optional enablePulse libpulseaudio
++ optional enablePipewire pipewire
++ optional enableAo libao
++ optional enableJack libjack2
++ optional enableSoundio libsoundio
++ optional enableSoxr soxr
++ optional enableAlac alac
++ optional enableConvolution libsndfile
++ optionals enableAirplay2 [
libplist
libsodium
@ -100,13 +118,19 @@ stdenv.mkDerivation rec {
++ optional enablePulse "--with-pa"
++ optional enablePipewire "--with-pw"
++ optional enableAlsa "--with-alsa"
++ optional enableSndio "--with-sndio"
++ optional enableAo "--with-ao"
++ optional enableJack "--with-jack"
++ optional enableSoundio "--with-soundio"
++ optional enableStdout "--with-stdout"
++ optional enablePipe "--with-pipe"
++ optional enableSoxr "--with-soxr"
++ optional enableAlac "--with-apple-alac"
++ optional enableConvolution "--with-convolution"
++ optional enableDbus "--with-dbus-interface"
++ optional enableMetadata "--with-metadata"
++ optional enableMpris "--with-mpris-interface"
++ optional enableMqttClient "--with-mqtt-client"
++ optional enableLibdaemon "--with-libdaemon"
++ optional enableAirplay2 "--with-airplay-2";

View file

@ -12306,6 +12306,10 @@ with pkgs;
shairplay = callPackage ../servers/shairplay { avahi = avahi-compat; };
shairport-sync-airplay2 = shairport-sync.override {
enableAirplay2 = true;
};
showoff = callPackage ../servers/http/showoff { };
ruby-zoom = callPackage ../tools/text/ruby-zoom { };