summary refs log tree commit diff
path: root/pkgs/development/libraries/libinput
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2018-06-18 16:46:11 -0700
committerJamey Sharp <jamey@minilop.net>2018-06-19 12:07:49 -0700
commitae09fe25e994ca6fe51681ebfcdcf32fa2e8b769 (patch)
tree7480f0744de74c654ba5107c52e8a0bfed77f089 /pkgs/development/libraries/libinput
parentfce64047333b5d51fd3746d328cc82c154e791d3 (diff)
downloadnixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.tar
nixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.tar.gz
nixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.tar.bz2
nixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.tar.lz
nixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.tar.xz
nixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.tar.zst
nixpkgs-ae09fe25e994ca6fe51681ebfcdcf32fa2e8b769.zip
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.
Diffstat (limited to 'pkgs/development/libraries/libinput')
-rw-r--r--pkgs/development/libraries/libinput/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libinput/default.nix b/pkgs/development/libraries/libinput/default.nix
index 3b4e3233d55..61c8095911f 100644
--- a/pkgs/development/libraries/libinput/default.nix
+++ b/pkgs/development/libraries/libinput/default.nix
@@ -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 ];