summary refs log tree commit diff
path: root/pkgs/applications/kde-apps-15.08/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/kde-apps-15.08/default.nix')
-rw-r--r--pkgs/applications/kde-apps-15.08/default.nix28
1 files changed, 8 insertions, 20 deletions
diff --git a/pkgs/applications/kde-apps-15.08/default.nix b/pkgs/applications/kde-apps-15.08/default.nix
index 45484964ff9..8694ee0b264 100644
--- a/pkgs/applications/kde-apps-15.08/default.nix
+++ b/pkgs/applications/kde-apps-15.08/default.nix
@@ -21,25 +21,10 @@ let
   srcs = import ./srcs.nix { inherit (pkgs) fetchurl; inherit mirror; };
   mirror = "mirror://kde";
 
-  kdeApp = args:
-    let
-      inherit (args) name;
-      sname = args.sname or name;
-      inherit (srcs."${sname}") src version;
-    in stdenv.mkDerivation (args // {
-      name = "${name}-${version}";
-      inherit src;
-
-      cmakeFlags =
-        (args.cmakeFlags or [])
-        ++ [ "-DBUILD_TESTING=OFF" ]
-        ++ lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
-
-      meta = {
-        platforms = lib.platforms.linux;
-        homepage = "http://www.kde.org";
-      } // (args.meta or {});
-    });
+  kdeApp = import ./kde-app.nix {
+    inherit stdenv lib;
+    inherit debug srcs;
+  };
 
   packages = self: with self; {
     kdelibs = callPackage ./kdelibs { inherit (pkgs) attica phonon; };
@@ -60,9 +45,12 @@ let
     libkexiv2 = callPackage ./libkexiv2.nix {};
     libkipi = callPackage ./libkipi.nix {};
     okular = callPackage ./okular.nix {};
+    oxygen-icons = callPackage ./oxygen-icons.nix {};
     print-manager = callPackage ./print-manager.nix {};
+
+    l10n = pkgs.recurseIntoAttrs (import ./l10n.nix { inherit callPackage lib pkgs; });
   };
 
-  newScope = scope: pkgs.kf513.newScope ({ inherit kdeApp; } // scope);
+  newScope = scope: pkgs.kf515.newScope ({ inherit kdeApp; } // scope);
 
 in lib.makeScope newScope packages