nixpkgs/pkgs/desktops/kde-4.5/kde-package/default.nix
Yury G. Kudryashov c766124771 Add kdePackage function
svn path=/nixpkgs/trunk/; revision=23008
2010-08-06 20:20:19 +00:00

18 lines
494 B
Nix

{ 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)