nixpkgs/pkgs/development/libraries/polkit-qt-1/default.nix

26 lines
713 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, pkgconfig, polkit, automoc4, glib
2015-09-27 14:58:27 +00:00
, qt4 ? null
, withQt5 ? false, qtbase ? null }:
2015-09-27 14:58:27 +00:00
with stdenv.lib;
assert (withQt5 -> qtbase != null); assert (!withQt5 -> qt4 != null);
stdenv.mkDerivation {
name = "polkit-qt-1-0.112.0";
src = fetchurl {
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
};
2015-09-27 14:58:27 +00:00
nativeBuildInputs = [ cmake pkgconfig ] ++ optional (!withQt5) automoc4;
2015-09-27 14:58:27 +00:00
propagatedBuildInputs = [ polkit glib ] ++ [(if withQt5 then qtbase else qt4)];
meta = {
description = "A Qt wrapper around PolKit";
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
};
}