2010-08-06 22:20:19 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2010-08-10 11:42:57 +02:00
|
|
|
a@{ pn, v, stable ? true, sha256, subdir ? null, ... }:
|
2010-08-06 22:20:19 +02:00
|
|
|
stdenv.mkDerivation ({
|
|
|
|
name = "${pn}-${v}";
|
|
|
|
src = fetchurl {
|
2010-08-06 22:22:22 +02:00
|
|
|
url = "mirror://kde/" + (if stable then "" else "un") + "stable/" +
|
|
|
|
(if subdir == null then "${v}/src" else subdir) + "/${pn}-${v}.tar.bz2";
|
2010-08-06 22:20:19 +02:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ sander urkud ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
inherit stable;
|
|
|
|
homepage = http://www.kde.org;
|
2010-08-10 11:42:57 +02:00
|
|
|
} // ( if a ? meta then a.meta else { } );
|
|
|
|
} // (removeAttrs a [ "meta" "pn" "v" "stable" "sha256" "subdir" ]))
|