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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user