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
@@ -1,14 +1,16 @@
{
mkDerivation, lib,
extra-cmake-modules,
ilmbase, karchive, qtbase
ilmbase, karchive, openexr, qtbase
}:
let inherit (lib) getDev; in
mkDerivation {
name = "kimageformats";
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ ilmbase qtbase ];
propagatedBuildInputs = [ karchive ];
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
buildInputs = [ karchive openexr qtbase ];
outputs = [ "out" ]; # plugins only
NIX_CFLAGS_COMPILE = "-I${getDev ilmbase}/include/OpenEXR";
}