2014-11-18 01:00:17 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, polkit, automoc4, glib
|
|
|
|
, qt4 ? null, qt5 ? null, withQt5 ? false }:
|
2011-07-07 21:47:38 +01:00
|
|
|
|
2014-11-18 01:00:17 +00:00
|
|
|
assert (withQt5 -> qt5 != null); assert (!withQt5 -> qt4 != null);
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "polkit-qt-1-0.112.0";
|
2011-07-07 21:47:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-18 01:00:17 +00:00
|
|
|
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
|
|
|
|
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
|
2011-07-07 21:47:38 +01:00
|
|
|
};
|
|
|
|
|
2014-11-18 01:00:17 +00:00
|
|
|
nativeBuildInputs = [ cmake automoc4 pkgconfig ];
|
2011-12-16 19:55:48 +00:00
|
|
|
|
2014-11-18 01:00:17 +00:00
|
|
|
propagatedBuildInputs = [ polkit glib (if withQt5 then qt5 else qt4) ];
|
2011-07-07 21:47:38 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Qt wrapper around PolKit";
|
2014-11-18 01:00:17 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
2011-07-07 21:47:38 +01:00
|
|
|
};
|
|
|
|
}
|