Separate Qt 5 packages from dependent libraries

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