about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-06-26 18:26:14 +0200
committerGitHub <noreply@github.com>2018-06-26 18:26:14 +0200
commit6c0427e8ec94b23243c71f60cd4b92af470c0697 (patch)
treeae40cdbe0cec80bbc582922afee8e093bf473ae8 /pkgs/development/libraries
parenta627399a84f06251fc88030bde1b571f82121993 (diff)
parentd8560227926cea4d41e4360fd54b819025810eb9 (diff)
downloadnixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.tar
nixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.tar.gz
nixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.tar.bz2
nixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.tar.lz
nixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.tar.xz
nixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.tar.zst
nixlib-6c0427e8ec94b23243c71f60cd4b92af470c0697.zip
Merge pull request #42586 from Ma27/phonon-qt5-by-default
phonon-backend-vlc: use qt5 by default
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/phonon/backends/vlc.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/development/libraries/phonon/backends/vlc.nix b/pkgs/development/libraries/phonon/backends/vlc.nix
index 643e36ba6cd6..0487886a8966 100644
--- a/pkgs/development/libraries/phonon/backends/vlc.nix
+++ b/pkgs/development/libraries/phonon/backends/vlc.nix
@@ -1,6 +1,6 @@
 { stdenv, lib, fetchurl, cmake, phonon, pkgconfig, vlc
 , extra-cmake-modules, qtbase ? null, qtx11extras ? null, qt4 ? null
-, withQt5 ? false
+, withQt4 ? false
 , debug ? false
 }:
 
@@ -11,11 +11,12 @@ let
   pname = "phonon-backend-vlc";
 in
 
-assert withQt5 -> qtbase != null;
-assert withQt5 -> qtx11extras != null;
+assert withQt4 -> qt4 != null;
+assert !withQt4 -> qtbase != null;
+assert !withQt4 -> qtx11extras != null;
 
 stdenv.mkDerivation rec {
-  name = "${pname}-${if withQt5 then "qt5" else "qt4"}-${v}";
+  name = "${pname}-${if withQt4 then "qt4" else "qt5"}-${v}";
 
   meta = with stdenv.lib; {
     homepage = https://phonon.kde.org/;
@@ -30,11 +31,11 @@ stdenv.mkDerivation rec {
 
   buildInputs =
     [ phonon vlc ]
-    ++ (if withQt5 then [ qtbase qtx11extras ] else [ qt4 ]);
+    ++ (if withQt4 then [ qt4 ] else [ qtbase qtx11extras ]);
 
-  nativeBuildInputs = [ cmake pkgconfig ] ++ optional withQt5 extra-cmake-modules;
+  nativeBuildInputs = [ cmake pkgconfig ] ++ optional (!withQt4) extra-cmake-modules;
 
   cmakeFlags =
     [ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ]
-    ++ optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
+    ++ optional (!withQt4) "-DPHONON_BUILD_PHONON4QT5=ON";
 }