nixpkgs/pkgs/desktops/kde-4.5/kde-package/default.nix
Yury G. Kudryashov de3531c2d5 Let kdePackage use manifest.nix
svn path=/nixpkgs/trunk/; revision=23120
2010-08-11 16:49:31 +00:00

22 lines
677 B
Nix

{ stdenv, fetchurl }:
let
manifest = import ./manifest.nix;
in
a@{ pn, v, stable ? true, 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";
sha256 = builtins.getAttr "${pn}-${v}.tar.bz2" manifest;
};
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" "subdir" ]))