mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
25 lines
587 B
Nix
25 lines
587 B
Nix
{ qtModule
|
|
, lib
|
|
, stdenv
|
|
, qtbase
|
|
, qtdeclarative
|
|
, pkg-config
|
|
, alsa-lib
|
|
, gstreamer
|
|
, gst-plugins-base
|
|
, libpulseaudio
|
|
, wayland
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qtmultimedia";
|
|
qtInputs = [ qtbase qtdeclarative ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ gstreamer gst-plugins-base libpulseaudio ]
|
|
++ lib.optional (stdenv.isLinux) alsa-lib
|
|
++ lib.optional (lib.versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland;
|
|
outputs = [ "bin" "dev" "out" ];
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
NIX_LDFLAGS = lib.optionalString (stdenv.isDarwin) "-lobjc";
|
|
}
|