410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
24 lines
582 B
Nix
24 lines
582 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 ]
|
|
# https://github.com/NixOS/nixpkgs/pull/169336 regarding libpulseaudio
|
|
++ lib.optionals stdenv.isLinux [ libpulseaudio alsa-lib wayland ];
|
|
outputs = [ "bin" "dev" "out" ];
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
NIX_LDFLAGS = lib.optionalString (stdenv.isDarwin) "-lobjc";
|
|
}
|