polkitQt: build with Qt 5.5

This commit is contained in:
Thomas Tuegel
2015-09-27 15:08:08 -05:00
parent 52798834a8
commit e2c25b2f60
3 changed files with 34 additions and 7 deletions
@@ -1,7 +1,10 @@
{ stdenv, fetchurl, cmake, pkgconfig, polkit, automoc4, glib
, qt4 ? null, qt5 ? null, withQt5 ? false }:
, qt4 ? null
, withQt5 ? false, qtbase ? null }:
assert (withQt5 -> qt5 != null); assert (!withQt5 -> qt4 != null);
with stdenv.lib;
assert (withQt5 -> qtbase != null); assert (!withQt5 -> qt4 != null);
stdenv.mkDerivation {
name = "polkit-qt-1-0.112.0";
@@ -11,9 +14,9 @@ stdenv.mkDerivation {
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
};
nativeBuildInputs = [ cmake automoc4 pkgconfig ];
nativeBuildInputs = [ cmake pkgconfig ] ++ optional (!withQt5) automoc4;
propagatedBuildInputs = [ polkit glib ] ++ (if withQt5 then [qt5.base] else [qt4]);
propagatedBuildInputs = [ polkit glib ] ++ [(if withQt5 then qtbase else qt4)];
meta = {
description = "A Qt wrapper around PolKit";