libinput: split utilities to a bin output
libinput builds some executables which are useful for debugging or unusual configurations, but not necessary in normal use of the library. (See libinput(1) and the other referenced man pages.) Some of these programs require Python, which makes the closure significantly larger. Splitting /libexec/ and /bin/ to a separate "bin" output allows systems that don't need these utilities to avoid the substantial size hit.
This commit is contained in:
parent
fce6404733
commit
ae09fe25e9
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "04mwl1v51b785h7q3v23hahr0qzr48qq1jzj7d3msjvgh97nr8v4";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
outputs = [ "out" "dev" "bin" ];
|
||||
|
||||
mesonFlags = [
|
||||
(mkFlag documentationSupport "documentation")
|
||||
@ -31,6 +31,10 @@ stdenv.mkDerivation rec {
|
||||
(mkFlag testsSupport "tests")
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
mesonFlags="$mesonFlags --libexecdir=$bin/libexec"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig meson ninja ]
|
||||
++ optionals documentationSupport [ doxygen graphviz ]
|
||||
++ optionals testsSupport [ check valgrind python3Packages.pyparsing ];
|
||||
|
Loading…
Reference in New Issue
Block a user