ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
17 lines
570 B
Nix
17 lines
570 B
Nix
{ qtModule, lib, stdenv, qtbase, qtdeclarative, pkg-config
|
|
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio, wayland
|
|
}:
|
|
|
|
with lib;
|
|
|
|
qtModule {
|
|
name = "qtmultimedia";
|
|
qtInputs = [ qtbase qtdeclarative ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ gstreamer gst-plugins-base libpulseaudio ]
|
|
++ optional (stdenv.isLinux) alsaLib
|
|
++ optional (versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland;
|
|
outputs = [ "bin" "dev" "out" ];
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
|
|
}
|