summary refs log tree commit diff
path: root/pkgs/development/libraries/pipewire
diff options
context:
space:
mode:
authorJan Solanti <jhs@psonet.com>2021-09-25 18:08:28 +0300
committerJan Solanti <jhs@psonet.com>2021-09-25 18:08:28 +0300
commit44881966286c672a8674456080d5cf0f4a0f73c1 (patch)
treee93471e947001012d18c02e45638d61c792c1676 /pkgs/development/libraries/pipewire
parenta8d0ad62cb2144c14f17aa7580eec48b63484f85 (diff)
downloadnixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.tar
nixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.tar.gz
nixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.tar.bz2
nixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.tar.lz
nixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.tar.xz
nixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.tar.zst
nixpkgs-44881966286c672a8674456080d5cf0f4a0f73c1.zip
pipewire: add libcamera support
Diffstat (limited to 'pkgs/development/libraries/pipewire')
-rw-r--r--pkgs/development/libraries/pipewire/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix
index 2f17aa002d8..b8e82723f76 100644
--- a/pkgs/development/libraries/pipewire/default.nix
+++ b/pkgs/development/libraries/pipewire/default.nix
@@ -28,6 +28,9 @@
 , callPackage
 , nixosTests
 , withMediaSession ? true
+, libcameraSupport ? true
+, libcamera
+, libdrm
 , gstreamerSupport ? true
 , gst_all_1 ? null
 , ffmpegSupport ? true
@@ -123,6 +126,7 @@ let
       SDL2
       systemd
     ] ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ]
+    ++ lib.optionals libcameraSupport [ libcamera libdrm ]
     ++ lib.optional ffmpegSupport ffmpeg
     ++ lib.optionals bluezSupport [ bluez libfreeaptx ldacbt sbc fdk_aac ]
     ++ lib.optional pulseTunnelSupport libpulseaudio
@@ -137,7 +141,7 @@ let
       "-Dpipewire_pulse_prefix=${placeholder "pulse"}"
       "-Dmedia-session-prefix=${placeholder "mediaSession"}"
       "-Dlibjack-path=${placeholder "jack"}/lib"
-      "-Dlibcamera=disabled"
+      "-Dlibcamera=${mesonEnable libcameraSupport}"
       "-Droc=disabled"
       "-Dlibpulse=${mesonEnable pulseTunnelSupport}"
       "-Davahi=${mesonEnable zeroconfSupport}"