kdeFrameworks: fixup inputs and outputs

- Reduce environment pollution with a separate $bin output containing programs,
  plugins, and shared data. Libraries remain in $out and are not installed into
  the environment.
- Only propagate build inputs as required.
This commit is contained in:
Thomas Tuegel
2017-06-18 08:44:45 -05:00
parent 087f20e8c6
commit faf0d3e91d
106 changed files with 533 additions and 338 deletions
@@ -39,11 +39,11 @@ let
# SUPPORT
let
propagateBin =
propagate = out:
let setupHook = { writeScript }:
writeScript "setup-hook.sh" ''
# Propagate $bin output
propagatedUserEnvPkgs+=" @bin@"
# Propagate $${out} output
propagatedUserEnvPkgs+=" @${out}@"
# Propagate $dev so that this setup hook is propagated
# But only if there is a separate $dev output
@@ -57,9 +57,11 @@ let
'';
in callPackage setupHook {};
propagateBin = propagate "bin";
callPackage = self.newScope {
inherit propagateBin;
inherit propagate propagateBin;
mkDerivation = args:
let