2010-08-06 22:20:19 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2010-08-11 18:49:31 +02:00
|
|
|
let
|
|
|
|
manifest = import ./manifest.nix;
|
|
|
|
in
|
|
|
|
|
|
|
|
a@{ pn, v, stable ? true, 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-11 18:49:31 +02:00
|
|
|
sha256 = builtins.getAttr "${pn}-${v}.tar.bz2" manifest;
|
2010-08-06 22:20:19 +02:00
|
|
|
};
|
|
|
|
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 { } );
|
2010-08-11 18:49:31 +02:00
|
|
|
} // (removeAttrs a [ "meta" "pn" "v" "stable" "subdir" ]))
|