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";
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [ 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
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ libpulseaudio alsa-lib wayland ];
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
2024-09-26 11:04:55 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString (stdenv.hostPlatform.isDarwin) "-lobjc";
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|