2021-08-22 07:53:02 +00:00
|
|
|
{ qtModule
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
|
|
|
, gstreamer
|
|
|
|
, gst-plugins-base
|
|
|
|
, libpulseaudio
|
|
|
|
, wayland
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "qtmultimedia";
|
2020-04-24 23:36:52 +00:00
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-04-27 09:35:20 +00:00
|
|
|
buildInputs = [ gstreamer gst-plugins-base ]
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/169336 regarding libpulseaudio
|
|
|
|
++ lib.optionals stdenv.isLinux [ libpulseaudio alsa-lib ]
|
2021-08-22 07:53:02 +00:00
|
|
|
++ lib.optional (lib.versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland;
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
2021-08-22 07:53:02 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString (stdenv.isDarwin) "-lobjc";
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|