extra-cmake-modules: Lift Qt dependency

This commit is contained in:
Thomas Tuegel
2017-02-27 11:49:46 -06:00
parent b39e491eb5
commit 127bf18a35
168 changed files with 493 additions and 455 deletions
@@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, cmake, mesa, pkgconfig, libpulseaudio
, qt4 ? null, ecm ? null, qtbase ? null, qttools ? null
, qt4 ? null, extra-cmake-modules ? null, qtbase ? null, qttools ? null
, withQt5 ? false
, debug ? false }:
@@ -32,7 +32,9 @@ stdenv.mkDerivation rec {
[ mesa libpulseaudio ]
++ (if withQt5 then [ qtbase qttools ] else [ qt4 ]);
nativeBuildInputs = [ cmake pkgconfig ] ++ optional withQt5 ecm;
nativeBuildInputs =
[ cmake pkgconfig ]
++ optional withQt5 extra-cmake-modules;
NIX_CFLAGS_COMPILE = "-fPIC";