Move kdeDerivation out of kdeFrameworks
This commit is contained in:
parent
a33ab04d1b
commit
d446303d0b
17
pkgs/build-support/kde/derivation.nix
Normal file
17
pkgs/build-support/kde/derivation.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ stdenv, lib, debug ? false }:
|
||||||
|
|
||||||
|
args:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (args // {
|
||||||
|
|
||||||
|
outputs = args.outputs or [ "out" "dev" ];
|
||||||
|
|
||||||
|
propagatedUserEnvPkgs =
|
||||||
|
builtins.map lib.getBin (args.propagatedBuildInputs or []);
|
||||||
|
|
||||||
|
cmakeFlags =
|
||||||
|
(args.cmakeFlags or [])
|
||||||
|
++ [ "-DBUILD_TESTING=OFF" ]
|
||||||
|
++ lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
|
||||||
|
|
||||||
|
})
|
@ -27,7 +27,7 @@ still shows most of the available features is in `./gwenview.nix`.
|
|||||||
|
|
||||||
{
|
{
|
||||||
stdenv, lib, libsForQt5, fetchurl,
|
stdenv, lib, libsForQt5, fetchurl,
|
||||||
plasma5,
|
kdeDerivation, plasma5,
|
||||||
attica, phonon,
|
attica, phonon,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
@ -40,9 +40,8 @@ let
|
|||||||
packages = self: with self; {
|
packages = self: with self; {
|
||||||
|
|
||||||
kdeApp = import ./kde-app.nix {
|
kdeApp = import ./kde-app.nix {
|
||||||
inherit lib;
|
inherit lib kdeDerivation;
|
||||||
inherit debug srcs;
|
inherit debug srcs;
|
||||||
inherit (libsForQt5) kdeDerivation;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
kdelibs = callPackage ./kdelibs {
|
kdelibs = callPackage ./kdelibs {
|
||||||
|
@ -26,7 +26,7 @@ existing packages here and modify it as necessary.
|
|||||||
|
|
||||||
{
|
{
|
||||||
stdenv, lib, libsForQt5, makeSetupHook, symlinkJoin, fetchurl,
|
stdenv, lib, libsForQt5, makeSetupHook, symlinkJoin, fetchurl,
|
||||||
gconf,
|
gconf, kdeDerivation,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ let
|
|||||||
inherit (args) name;
|
inherit (args) name;
|
||||||
sname = args.sname or name;
|
sname = args.sname or name;
|
||||||
inherit (srcs."${sname}") src version;
|
inherit (srcs."${sname}") src version;
|
||||||
in libsForQt5.kdeDerivation (args // {
|
in kdeDerivation (args // {
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ existing packages here and modify it as necessary.
|
|||||||
|
|
||||||
{
|
{
|
||||||
stdenv, lib, makeSetupHook, makeWrapper, fetchurl, buildEnv,
|
stdenv, lib, makeSetupHook, makeWrapper, fetchurl, buildEnv,
|
||||||
callPackage,
|
kdeDerivation, callPackage,
|
||||||
debug ? false
|
debug ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -37,22 +37,6 @@ let
|
|||||||
|
|
||||||
packages = rec {
|
packages = rec {
|
||||||
|
|
||||||
kdeDerivation = args:
|
|
||||||
let
|
|
||||||
in stdenv.mkDerivation (args // {
|
|
||||||
|
|
||||||
outputs = args.outputs or [ "out" "dev" ];
|
|
||||||
|
|
||||||
propagatedUserEnvPkgs =
|
|
||||||
builtins.map lib.getBin (args.propagatedBuildInputs or []);
|
|
||||||
|
|
||||||
cmakeFlags =
|
|
||||||
(args.cmakeFlags or [])
|
|
||||||
++ [ "-DBUILD_TESTING=OFF" ]
|
|
||||||
++ lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
kdeFramework = args:
|
kdeFramework = args:
|
||||||
let
|
let
|
||||||
inherit (args) name;
|
inherit (args) name;
|
||||||
|
@ -269,6 +269,8 @@ with pkgs;
|
|||||||
inherit kernel rootModules allowMissing;
|
inherit kernel rootModules allowMissing;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
kdeDerivation = import ../build-support/kde/derivation.nix { inherit stdenv lib; };
|
||||||
|
|
||||||
nixBufferBuilders = import ../build-support/emacs/buffer.nix { inherit (pkgs) lib writeText; inherit (emacsPackagesNg) inherit-local; };
|
nixBufferBuilders = import ../build-support/emacs/buffer.nix { inherit (pkgs) lib writeText; inherit (emacsPackagesNg) inherit-local; };
|
||||||
|
|
||||||
pathsFromGraph = ../build-support/kernel/paths-from-graph.pl;
|
pathsFromGraph = ../build-support/kernel/paths-from-graph.pl;
|
||||||
@ -9337,11 +9339,15 @@ with pkgs;
|
|||||||
|
|
||||||
mkLibsForQt5 = self: with self;
|
mkLibsForQt5 = self: with self;
|
||||||
let kdeFrameworks = import ../development/libraries/kde-frameworks {
|
let kdeFrameworks = import ../development/libraries/kde-frameworks {
|
||||||
inherit stdenv lib makeSetupHook makeWrapper fetchurl buildEnv;
|
inherit stdenv lib kdeDerivation makeSetupHook makeWrapper fetchurl buildEnv;
|
||||||
inherit (self) callPackage;
|
inherit (self) callPackage;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
### BUILD SUPPORT
|
||||||
|
|
||||||
|
### LIBRARIES
|
||||||
|
|
||||||
accounts-qt = callPackage ../development/libraries/accounts-qt { };
|
accounts-qt = callPackage ../development/libraries/accounts-qt { };
|
||||||
|
|
||||||
fcitx-qt5 = callPackage ../tools/inputmethods/fcitx/fcitx-qt5.nix { };
|
fcitx-qt5 = callPackage ../tools/inputmethods/fcitx/fcitx-qt5.nix { };
|
||||||
@ -14047,7 +14053,7 @@ with pkgs;
|
|||||||
|
|
||||||
kdeApplications = import ../desktops/kde-5/applications {
|
kdeApplications = import ../desktops/kde-5/applications {
|
||||||
inherit stdenv lib libsForQt5 fetchurl;
|
inherit stdenv lib libsForQt5 fetchurl;
|
||||||
inherit plasma5;
|
inherit kdeDerivation plasma5;
|
||||||
inherit attica phonon;
|
inherit attica phonon;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -16814,6 +16820,7 @@ with pkgs;
|
|||||||
|
|
||||||
plasma5 = import ../desktops/plasma-5 {
|
plasma5 = import ../desktops/plasma-5 {
|
||||||
inherit stdenv lib libsForQt5 makeSetupHook symlinkJoin fetchurl;
|
inherit stdenv lib libsForQt5 makeSetupHook symlinkJoin fetchurl;
|
||||||
|
inherit kdeDerivation;
|
||||||
inherit (gnome3) gconf;
|
inherit (gnome3) gconf;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user