about summary refs log tree commit diff
path: root/pkgs/applications/video/vlc
diff options
context:
space:
mode:
authorIoannis Koutras <ioannis.koutras@gmail.com>2019-07-28 20:19:11 +0200
committerIoannis Koutras <ioannis.koutras@gmail.com>2019-07-28 20:19:11 +0200
commit20b09bee14cd3768ec8036f5533b3bf23b224da4 (patch)
treeffb19c80b58ce9d747fa643546912534f80697a7 /pkgs/applications/video/vlc
parent9ff408a2a4cb784160afef9a43c73a7a37ba38c9 (diff)
vlc: use wrapQtAppsHook
Diffstat (limited to 'pkgs/applications/video/vlc')
-rw-r--r--pkgs/applications/video/vlc/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix
index e9fc0b4feda32..8979e9790b4eb 100644
--- a/pkgs/applications/video/vlc/default.nix
+++ b/pkgs/applications/video/vlc/default.nix
@@ -9,7 +9,7 @@
 , libass, libva, libdvbpsi, libdc1394, libraw1394, libopus
 , libvdpau, libsamplerate, live555, fluidsynth, wayland, wayland-protocols
 , onlyLibVLC ? false
-, withQt5 ? true, qtbase ? null, qtsvg ? null, qtx11extras ? null
+, withQt5 ? true, qtbase ? null, qtsvg ? null, qtx11extras ? null, wrapQtAppsHook ? null
 , jackSupport ? false
 , removeReferencesTo
 , chromecastSupport ? true, protobuf, libmicrodns
@@ -21,7 +21,7 @@
 
 with stdenv.lib;
 
-assert (withQt5 -> qtbase != null && qtsvg != null && qtx11extras != null);
+assert (withQt5 -> qtbase != null && qtsvg != null && qtx11extras != null && wrapQtAppsHook != null);
 
 stdenv.mkDerivation rec {
   name = "vlc-${version}";
@@ -49,7 +49,8 @@ stdenv.mkDerivation rec {
     ++ optional jackSupport libjack2
     ++ optionals chromecastSupport [ protobuf libmicrodns ];
 
-  nativeBuildInputs = [ autoreconfHook perl pkgconfig removeReferencesTo ];
+  nativeBuildInputs = [ autoreconfHook perl pkgconfig removeReferencesTo ]
+    ++ optionals withQt5 [ wrapQtAppsHook ];
 
   enableParallelBuilding = true;