mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
43 lines
716 B
Nix
43 lines
716 B
Nix
{
|
|
qtModule,
|
|
lib,
|
|
stdenv,
|
|
qtbase,
|
|
qtdeclarative,
|
|
pkg-config,
|
|
alsa-lib,
|
|
gst_all_1,
|
|
libpulseaudio,
|
|
wayland,
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qtmultimedia";
|
|
propagatedBuildInputs = [
|
|
qtbase
|
|
qtdeclarative
|
|
];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs =
|
|
with gst_all_1;
|
|
[
|
|
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" ];
|
|
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin) {
|
|
NIX_LDFLAGS = "-lobjc";
|
|
};
|
|
}
|