diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-11-24 08:24:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 08:24:34 +0100 |
commit | 4b610d814e09857c974ac2f65374a5baba0902ff (patch) | |
tree | 001f768e7eb8fb1967c443eaa678315e744a1b49 /pkgs | |
parent | 5a6981654badf23e8c99c9c87bda6f60e46dde5f (diff) | |
parent | 5204792cad55b2ba1dda3ee5515526e865ce792b (diff) |
Merge pull request #99210 from schmittlauch/mplayer-v4l
mplayer: allow enabling v4l2 driver for e.g webcams
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/video/mplayer/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/video/mplayer/default.nix b/pkgs/applications/video/mplayer/default.nix index f00b5aabf977..86047239cc56 100644 --- a/pkgs/applications/video/mplayer/default.nix +++ b/pkgs/applications/video/mplayer/default.nix @@ -21,6 +21,7 @@ , jackaudioSupport ? false, libjack2 ? null , pulseSupport ? config.pulseaudio or false, libpulseaudio ? null , bs2bSupport ? false, libbs2b ? null +, v4lSupport ? false, libv4l ? null # For screenshots , libpngSupport ? true, libpng ? null , libjpegSupport ? true, libjpeg ? null @@ -53,6 +54,7 @@ assert pulseSupport -> libpulseaudio != null; assert bs2bSupport -> libbs2b != null; assert libpngSupport -> libpng != null; assert libjpegSupport -> libjpeg != null; +assert v4lSupport -> libv4l != null; let @@ -132,6 +134,7 @@ stdenv.mkDerivation rec { ++ optional libpngSupport libpng ++ optional libjpegSupport libjpeg ++ optional bs2bSupport libbs2b + ++ optional v4lSupport libv4l ++ (with darwin.apple_sdk.frameworks; optionals stdenv.isDarwin [ Cocoa OpenGL ]) ; @@ -156,6 +159,7 @@ stdenv.mkDerivation rec { (if x264Support then "--enable-x264 --disable-x264-lavc" else "--disable-x264 --enable-x264-lavc") (if jackaudioSupport then "" else "--disable-jack") (if pulseSupport then "--enable-pulse" else "--disable-pulse") + (if v4lSupport then "--enable-v4l2 --enable-tv-v4l2" else "--disable-v4l2 --disable-tv-v4l2") "--disable-xanim" "--disable-ivtv" "--disable-xvid --disable-xvid-lavc" |