nixpkgs/pkgs/desktops/kde-4.5/kde-package/default.nix
Yury G. Kudryashov 46c2adbc73 Slightly rewrite kde-package
svn path=/nixpkgs/trunk/; revision=23087
2010-08-10 09:42:57 +00:00

18 lines
609 B
Nix

{ stdenv, fetchurl }:
a@{ pn, v, stable ? true, sha256, subdir ? null, ... }:
stdenv.mkDerivation ({
name = "${pn}-${v}";
src = fetchurl {
url = "mirror://kde/" + (if stable then "" else "un") + "stable/" +
(if subdir == null then "${v}/src" else subdir) + "/${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 a ? meta then a.meta else { } );
} // (removeAttrs a [ "meta" "pn" "v" "stable" "sha256" "subdir" ]))