diff options
Diffstat (limited to 'pkgs/development/libraries/polkit-qt-1')
-rw-r--r-- | pkgs/development/libraries/polkit-qt-1/default.nix | 11 | ||||
-rw-r--r-- | pkgs/development/libraries/polkit-qt-1/old.nix | 22 |
2 files changed, 29 insertions, 4 deletions
diff --git a/pkgs/development/libraries/polkit-qt-1/default.nix b/pkgs/development/libraries/polkit-qt-1/default.nix index b887134e5b9..3715158705c 100644 --- a/pkgs/development/libraries/polkit-qt-1/default.nix +++ b/pkgs/development/libraries/polkit-qt-1/default.nix @@ -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"; diff --git a/pkgs/development/libraries/polkit-qt-1/old.nix b/pkgs/development/libraries/polkit-qt-1/old.nix new file mode 100644 index 00000000000..b887134e5b9 --- /dev/null +++ b/pkgs/development/libraries/polkit-qt-1/old.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, cmake, pkgconfig, polkit, automoc4, glib +, qt4 ? null, qt5 ? null, withQt5 ? false }: + +assert (withQt5 -> qt5 != 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"; + }; + + nativeBuildInputs = [ cmake automoc4 pkgconfig ]; + + propagatedBuildInputs = [ polkit glib ] ++ (if withQt5 then [qt5.base] else [qt4]); + + meta = { + description = "A Qt wrapper around PolKit"; + maintainers = with stdenv.lib.maintainers; [ ttuegel ]; + }; +} |