git.iko.soy/typeable/nixpkgs
on master help sign in
pipewire: add libcamera support
commit44881966286c672a8674456080d5cf0f4a0f73c1 authorJan Solanti <jhs@psonet.com> dateSat 25 Sep 2021, 18:08 (5 years ago) parenta8d0ad6
1 file changed+5−1
pkgs/development/libraries/pipewire/default.nix+5−1
pkgs/development/libraries/pipewire/default.nix+5−1
@@ -28,6 +28,9 @@
2828, callPackage
2929, nixosTests
3030, withMediaSession ? true
31+, libcameraSupport ? true
32+, libcamera
33+, libdrm
3134, gstreamerSupport ? true
3235, gst_all_1 ? null
3336, ffmpegSupport ? true
@@ -123,6 +126,7 @@ let
123126 SDL2
124127 systemd
125128 ] ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ]
129+ ++ lib.optionals libcameraSupport [ libcamera libdrm ]
126130 ++ lib.optional ffmpegSupport ffmpeg
127131 ++ lib.optionals bluezSupport [ bluez libfreeaptx ldacbt sbc fdk_aac ]
128132 ++ lib.optional pulseTunnelSupport libpulseaudio
@@ -137,7 +141,7 @@ let
137141 "-Dpipewire_pulse_prefix=${placeholder "pulse"}"
138142 "-Dmedia-session-prefix=${placeholder "mediaSession"}"
139143 "-Dlibjack-path=${placeholder "jack"}/lib"
140− "-Dlibcamera=disabled"
144+ "-Dlibcamera=${mesonEnable libcameraSupport}"
141145 "-Droc=disabled"
142146 "-Dlibpulse=${mesonEnable pulseTunnelSupport}"
143147 "-Davahi=${mesonEnable zeroconfSupport}"