From 4f7297f1e32f4d42544d6b5f9b332e1bd1f176ea Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Wed, 27 Jan 2016 06:23:03 -0600 Subject: [PATCH] kde5.apps: use multiple outputs --- pkgs/applications/kde-apps-15.12/kde-app.nix | 2 ++ pkgs/applications/kde-apps-15.12/kde-locale-4.nix | 7 +++++++ pkgs/applications/kde-apps-15.12/kde-locale-5.nix | 7 +++++++ pkgs/applications/kde-apps-15.12/kdelibs/default.nix | 2 ++ 4 files changed, 18 insertions(+) diff --git a/pkgs/applications/kde-apps-15.12/kde-app.nix b/pkgs/applications/kde-apps-15.12/kde-app.nix index 242f3d9c793d..2f1fdc1d643c 100644 --- a/pkgs/applications/kde-apps-15.12/kde-app.nix +++ b/pkgs/applications/kde-apps-15.12/kde-app.nix @@ -11,6 +11,8 @@ stdenv.mkDerivation (args // { name = "${name}-${version}"; inherit src; + outputs = args.outputs or [ "dev" "out" ]; + cmakeFlags = (args.cmakeFlags or []) ++ [ "-DBUILD_TESTING=OFF" ] diff --git a/pkgs/applications/kde-apps-15.12/kde-locale-4.nix b/pkgs/applications/kde-apps-15.12/kde-locale-4.nix index 4b612ee3e3c2..e83794c60d81 100644 --- a/pkgs/applications/kde-apps-15.12/kde-locale-4.nix +++ b/pkgs/applications/kde-apps-15.12/kde-locale-4.nix @@ -6,6 +6,8 @@ kdeApp (args // { sname = "kde-l10n-${name}"; name = "kde-l10n-${name}-qt4"; + outputs = [ "out" ]; + nativeBuildInputs = [ automoc4 cmake gettext perl ] ++ (args.nativeBuildInputs or []); @@ -17,4 +19,9 @@ kdeApp (args // { sed -e 's/add_subdirectory(5)//' -i CMakeLists.txt ${args.preConfigure or ""} ''; + + preFixup = '' + propagatedBuildInputs= + propagatedNativeBuildInputs= + ''; }) diff --git a/pkgs/applications/kde-apps-15.12/kde-locale-5.nix b/pkgs/applications/kde-apps-15.12/kde-locale-5.nix index 522fc542aeb2..772ebe37e44f 100644 --- a/pkgs/applications/kde-apps-15.12/kde-locale-5.nix +++ b/pkgs/applications/kde-apps-15.12/kde-locale-5.nix @@ -6,6 +6,8 @@ kdeApp (args // { sname = "kde-l10n-${name}"; name = "kde-l10n-${name}-qt5"; + outputs = [ "out" ]; + nativeBuildInputs = [ cmake extra-cmake-modules gettext kdoctools ] ++ (args.nativeBuildInputs or []); @@ -14,4 +16,9 @@ kdeApp (args // { sed -e 's/add_subdirectory(4)//' -i CMakeLists.txt ${args.preConfigure or ""} ''; + + preFixup = '' + propagatedBuildInputs= + propagatedNativeBuildInputs= + ''; }) diff --git a/pkgs/applications/kde-apps-15.12/kdelibs/default.nix b/pkgs/applications/kde-apps-15.12/kdelibs/default.nix index 91c1f3af448a..389362deecc6 100644 --- a/pkgs/applications/kde-apps-15.12/kdelibs/default.nix +++ b/pkgs/applications/kde-apps-15.12/kdelibs/default.nix @@ -9,6 +9,8 @@ kdeApp { name = "kdelibs"; + outputs = [ "out" ]; + buildInputs = [ attica attr avahi giflib libdbusmenu_qt libjpeg libxml2 polkit_qt4 qca2 shared_desktop_ontologies udev xz pcre