2015-03-13 22:27:49 +01:00
|
|
|
# Maintainer's Notes:
|
|
|
|
#
|
|
|
|
# Minor updates:
|
|
|
|
# 1. Edit ./manifest.sh to point to the updated URL. Upstream sometimes
|
|
|
|
# releases updates that include only the changed packages; in this case,
|
|
|
|
# multiple URLs can be provided and the results will be merged.
|
|
|
|
# 2. Run ./manifest.sh and ./dependencies.sh.
|
|
|
|
# 3. Build and enjoy.
|
|
|
|
#
|
|
|
|
# Major updates:
|
|
|
|
# We prefer not to immediately overwrite older versions with major updates, so
|
|
|
|
# make a copy of this directory first. After copying, be sure to delete ./tmp
|
|
|
|
# if it exists. Then follow the minor update instructions.
|
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
{ pkgs, newScope, qt5 ? null, debug ? false }:
|
2015-03-13 22:27:49 +01:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
let inherit (pkgs) autonix stdenv symlinkJoin; in
|
2015-03-13 22:27:49 +01:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
with autonix; let inherit (stdenv) lib; in
|
2015-03-13 22:27:49 +01:00
|
|
|
|
2015-06-15 17:50:39 +02:00
|
|
|
let
|
2015-06-18 21:25:51 +02:00
|
|
|
qt5_ = if qt5 != null then qt5 else pkgs.qt54;
|
|
|
|
in
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
qt5 = qt5_;
|
2015-03-13 22:27:49 +01:00
|
|
|
|
2015-06-15 17:50:39 +02:00
|
|
|
super =
|
|
|
|
let json = builtins.fromJSON (builtins.readFile ./packages.json);
|
|
|
|
mirrorUrl = n: pkg: pkg // {
|
|
|
|
src = pkg.src // { url = "mirror://kde/${pkg.src.url}"; };
|
|
|
|
};
|
|
|
|
renames = builtins.fromJSON (builtins.readFile ./renames.json);
|
|
|
|
propagated = [ "extra-cmake-modules" ];
|
|
|
|
native = [
|
|
|
|
"bison"
|
|
|
|
"extra-cmake-modules"
|
|
|
|
"flex"
|
|
|
|
"kdoctools"
|
|
|
|
"ki18n"
|
|
|
|
"libxslt"
|
|
|
|
"perl"
|
|
|
|
"pythoninterp"
|
|
|
|
];
|
|
|
|
user = [
|
2015-06-25 00:27:36 +02:00
|
|
|
"qt5"
|
|
|
|
"qt5core"
|
|
|
|
"qt5dbus"
|
|
|
|
"qt5gui"
|
|
|
|
"qt5qml"
|
|
|
|
"qt5quick"
|
|
|
|
"qt5svg"
|
|
|
|
"qt5webkitwidgets"
|
|
|
|
"qt5widgets"
|
|
|
|
"qt5x11extras"
|
2015-06-15 17:50:39 +02:00
|
|
|
"shareddesktopontologies"
|
|
|
|
"sharedmimeinfo"
|
|
|
|
];
|
|
|
|
in lib.fold (f: attrs: f attrs) json [
|
|
|
|
(lib.mapAttrs kdePackage)
|
|
|
|
(userEnvDeps user)
|
|
|
|
(nativeDeps native)
|
|
|
|
(propagateDeps propagated)
|
|
|
|
(renameDeps renames)
|
|
|
|
(lib.mapAttrs mirrorUrl)
|
|
|
|
];
|
|
|
|
|
|
|
|
kdePackage = name: pkg:
|
|
|
|
let defaultOverride = drv: drv // {
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
cmakeFlags =
|
|
|
|
(drv.cmakeFlags or [])
|
|
|
|
++ [ "-DBUILD_TESTING=OFF" ]
|
|
|
|
++ lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
|
|
|
|
meta = {
|
2015-03-13 22:27:49 +01:00
|
|
|
license = with stdenv.lib.licenses; [
|
|
|
|
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
|
|
|
|
];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
|
|
|
homepage = "http://www.kde.org";
|
2015-06-15 17:50:39 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
callPackage = newScope {
|
|
|
|
inherit (stdenv) mkDerivation;
|
|
|
|
inherit (pkgs) fetchurl;
|
|
|
|
inherit scope;
|
|
|
|
};
|
|
|
|
in mkPackage callPackage defaultOverride name pkg;
|
2015-03-13 22:27:49 +01:00
|
|
|
|
|
|
|
scope =
|
|
|
|
# packages in this collection
|
2015-06-15 17:50:39 +02:00
|
|
|
self //
|
2015-03-13 22:27:49 +01:00
|
|
|
# packages pinned to this version of Qt 5
|
|
|
|
{
|
2015-06-25 00:27:36 +02:00
|
|
|
dbusmenu-qt5 = pkgs.libdbusmenu_qt5.override { inherit qt5; };
|
2015-06-15 17:50:39 +02:00
|
|
|
phonon4qt5 = pkgs.phonon_qt5.override { inherit qt5; };
|
|
|
|
polkit_qt5 = pkgs.polkit_qt5.override { inherit qt5; };
|
|
|
|
qt5 = qt5.base;
|
|
|
|
qt5core = qt5.base;
|
|
|
|
qt5dbus = qt5.base;
|
|
|
|
qt5gui = qt5.base;
|
|
|
|
qt5linguisttools = qt5.tools;
|
|
|
|
qt5qml = [qt5.declarative qt5.graphicaleffects];
|
|
|
|
qt5quick = [qt5.quickcontrols qt5.graphicaleffects];
|
|
|
|
qt5script = qt5.script;
|
|
|
|
qt5svg = qt5.svg;
|
|
|
|
qt5webkitwidgets = qt5.webkit;
|
|
|
|
qt5widgets = qt5.base;
|
|
|
|
qt5x11extras = qt5.x11extras;
|
|
|
|
qt5xmlpatterns = qt5.xmlpatterns;
|
2015-03-13 22:27:49 +01:00
|
|
|
} //
|
|
|
|
# packages from the nixpkgs collection
|
|
|
|
(with pkgs;
|
|
|
|
{
|
2015-06-15 17:50:39 +02:00
|
|
|
inherit acl cmake docbook_xml_dtd_45 docbook5_xsl epoxy fam gpgme
|
|
|
|
libgcrypt libgit2 modemmanager networkmanager perl
|
2015-09-15 11:26:18 +02:00
|
|
|
perlPackages qimageblitz xorg zlib;
|
2015-09-18 00:40:32 +02:00
|
|
|
boost = boost155;
|
2015-06-15 17:50:39 +02:00
|
|
|
gif = giflib;
|
|
|
|
glib2 = glib;
|
|
|
|
jpeg = libjpeg;
|
|
|
|
libintl = gettext;
|
|
|
|
liblzma = lzma;
|
|
|
|
pythoninterp = python;
|
|
|
|
pythonlibrary = python;
|
|
|
|
sharedmimeinfo = shared_mime_info;
|
2015-03-13 22:27:49 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2015-06-15 17:50:39 +02:00
|
|
|
self = super // {
|
|
|
|
extra-cmake-modules = overrideDerivation super.extra-cmake-modules (drv: {
|
|
|
|
buildInputs = [];
|
|
|
|
nativeBuildInputs = [];
|
|
|
|
propagatedBuildInputs = [];
|
|
|
|
propagatedNativeBuildInputs = [ scope.cmake pkgs.pkgconfig qt5.tools ];
|
|
|
|
propagatedUserEnvPkgs = [];
|
|
|
|
cmakeFlags = ["-DBUILD_TESTING=OFF"];
|
|
|
|
patches = [./extra-cmake-modules/0001-extra-cmake-modules-paths.patch];
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
|
|
|
homepage = "http://www.kde.org";
|
2015-04-26 00:22:12 +02:00
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
});
|
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
frameworkintegration = extendDerivation super.frameworkintegration {
|
2015-09-15 11:26:18 +02:00
|
|
|
buildInputs = [ scope.xorg.libXcursor ];
|
2015-06-18 21:25:51 +02:00
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kauth = extendDerivation super.kauth {
|
|
|
|
buildInputs = [ scope.polkit_qt5 ];
|
|
|
|
patches = [ ./kauth/kauth-policy-install.patch ];
|
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kcmutils = extendDerivation super.kcmutils {
|
|
|
|
patches = [ ./kcmutils/kcmutils-pluginselector-follow-symlinks.patch ];
|
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kconfigwidgets = extendDerivation super.kconfigwidgets {
|
|
|
|
patches = [ ./kconfigwidgets/kconfigwidgets-helpclient-follow-symlinks.patch ];
|
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kdelibs4support = extendDerivation super.kdelibs4support {
|
2015-09-15 11:26:18 +02:00
|
|
|
buildInputs = [ scope.networkmanager scope.xorg.libSM ];
|
2015-06-18 21:25:51 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DDocBookXML4_DTD_DIR=${pkgs.docbook_xml_dtd_45}/xml/dtd/docbook"
|
|
|
|
"-DDocBookXML4_DTD_VERSION=4.5"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
kdoctools = extendDerivation super.kdoctools {
|
|
|
|
propagatedNativeBuildInputs = [ scope.perl scope.perlPackages.URI ];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDocBookXML4_DTD_DIR=${scope.docbook_xml_dtd_45}/xml/dtd/docbook"
|
|
|
|
"-DDocBookXML4_DTD_VERSION=4.5"
|
|
|
|
"-DDocBookXSL_DIR=${scope.docbook5_xsl}/xml/xsl/docbook"
|
|
|
|
];
|
|
|
|
patches = [ ./kdoctools/kdoctools-no-find-docbook-xml.patch ];
|
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
ki18n = extendDerivation super.ki18n {
|
|
|
|
propagatedNativeBuildInputs = with scope; [ libintl pythoninterp ];
|
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kimageformats = extendDerivation super.kimageformats {
|
2015-06-15 17:50:39 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${pkgs.ilmbase}/include/OpenEXR";
|
2015-06-18 21:25:51 +02:00
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kinit = extendDerivation super.kinit {
|
2015-06-15 17:50:39 +02:00
|
|
|
patches = [./kinit/0001-kinit-libpath.patch];
|
2015-06-18 21:25:51 +02:00
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kpackage = extendDerivation super.kpackage {
|
|
|
|
patches = [ ./kpackage/0001-allow-external-paths.patch ];
|
|
|
|
};
|
2015-06-15 17:50:39 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
kservice = extendDerivation super.kservice {
|
|
|
|
buildInputs = [ scope.kwindowsystem ];
|
2015-06-15 17:50:39 +02:00
|
|
|
patches = [
|
|
|
|
./kservice/kservice-kbuildsycoca-follow-symlinks.patch
|
|
|
|
./kservice/kservice-kbuildsycoca-no-canonicalize-path.patch
|
|
|
|
];
|
2015-06-18 21:25:51 +02:00
|
|
|
};
|
2015-04-26 00:22:12 +02:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
ktexteditor = extendDerivation super.ktexteditor {
|
2015-06-15 17:50:39 +02:00
|
|
|
patches = [ ./ktexteditor/0001-no-qcoreapplication.patch ];
|
2015-06-18 21:25:51 +02:00
|
|
|
};
|
2015-03-13 22:27:49 +01:00
|
|
|
|
2015-06-18 21:25:51 +02:00
|
|
|
networkmanager-qt = extendDerivation super.networkmanager-qt {
|
|
|
|
propagatedBuildInputs = [ scope.networkmanager ];
|
|
|
|
};
|
2015-03-13 22:27:49 +01:00
|
|
|
};
|
|
|
|
|
2015-06-15 17:50:39 +02:00
|
|
|
in self
|