3
0
Fork 0
forked from mirrors/nixpkgs

Add kdePackage function

svn path=/nixpkgs/trunk/; revision=23008
This commit is contained in:
Yury G. Kudryashov 2010-08-06 20:20:19 +00:00
parent 896d1f752d
commit c766124771
3 changed files with 31 additions and 8 deletions

View file

@ -1,8 +1,12 @@
callPackage :
{ callPackage, stdenv, fetchurl } :
{
recurseForRelease = true;
kdePackage = import ./kde-package {
inherit stdenv fetchurl;
};
### SUPPORT
akonadi = callPackage ./support/akonadi { };

View file

@ -0,0 +1,17 @@
{ stdenv, fetchurl }:
{ pn, v, stable ? true, sha256 }: args:
stdenv.mkDerivation ({
name = "${pn}-${v}";
src = fetchurl {
url = "mirror://kde/" + (if stable then "" else "un")
+ "stable/${v}/src/${pn}-${v}.tar.bz2";
inherit sha256;
};
meta = {
maintainers = with stdenv.lib.maintainers; [ sander urkud ];
platforms = stdenv.lib.platforms.linux;
inherit stable;
homepage = http://www.kde.org;
} // ( if args ? meta then args.meta else { } );
} // args)

View file

@ -6542,13 +6542,15 @@ let
stdenv = stdenv2;
});
kde45 = import ../desktops/kde-4.5 (newScope ({
qt4 = qt47;
pyqt4 = pyqt4.override { qt4 = qt47; };
libdbusmenu_qt = libdbusmenu_qt.override { qt4 = qt47; };
shared_desktop_ontologies = shared_desktop_ontologies.override { v = "0.5"; };
stdenv = stdenv2;
} // kde45) );
kde45 = callPackage ../desktops/kde-4.5 {
callPackage = newScope ({
qt4 = qt47;
pyqt4 = pyqt4.override { qt4 = qt47; };
libdbusmenu_qt = libdbusmenu_qt.override { qt4 = qt47; };
shared_desktop_ontologies = shared_desktop_ontologies.override { v = "0.5"; };
stdenv = stdenv2;
} // kde45);
};
xfce = xfce4;
xfce4 = recurseIntoAttrs (import ../desktops/xfce-4 pkgs);