Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
24 lines
621 B
Nix
24 lines
621 B
Nix
{ qtModule
|
|
, lib
|
|
, stdenv
|
|
, qtbase
|
|
, qtdeclarative
|
|
, pkg-config
|
|
, alsa-lib
|
|
, gstreamer
|
|
, gst-plugins-base
|
|
, libpulseaudio
|
|
, wayland
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qtmultimedia";
|
|
propagatedBuildInputs = [ qtbase qtdeclarative ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ gstreamer gst-plugins-base ]
|
|
# https://github.com/NixOS/nixpkgs/pull/169336 regarding libpulseaudio
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ libpulseaudio alsa-lib wayland ];
|
|
outputs = [ "bin" "dev" "out" ];
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
NIX_LDFLAGS = lib.optionalString (stdenv.hostPlatform.isDarwin) "-lobjc";
|
|
}
|