wayland: Add a "bin" and "dev" output

Another advantage is that we can now use the wayland-scanner alias for
nativeBuildInputs (which is less confusing than adding "wayland" to both
nativeBuildInputs and buildInputs).
This commit is contained in:
Michael Weiss 2021-04-03 15:29:55 +02:00
parent 827f7a3e43
commit 6a30a601c7
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83
3 changed files with 5 additions and 4 deletions

View file

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
patchShebangs doc/doxygen/gen-doxygen.py
'';
outputs = [ "out" ] ++ lib.optionals withDocumentation [ "doc" "man" ];
outputs = [ "out" "bin" "dev" ] ++ lib.optionals withDocumentation [ "doc" "man" ];
separateDebugInfo = true;
mesonFlags = [

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wayland
, libGL, wayland-protocols, libinput, libxkbcommon, pixman
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wayland-scanner
, libGL, wayland, wayland-protocols, libinput, libxkbcommon, pixman
, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
, libpng, ffmpeg
}:
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
# $out for the library and $examples for the example programs (in examples):
outputs = [ "out" "examples" ];
nativeBuildInputs = [ meson ninja pkg-config wayland ];
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
buildInputs = [
libGL wayland wayland-protocols libinput libxkbcommon pixman

View file

@ -17687,6 +17687,7 @@ in
wavpack = callPackage ../development/libraries/wavpack { };
wayland = callPackage ../development/libraries/wayland { };
wayland-scanner = wayland.bin;
wayland-protocols = callPackage ../development/libraries/wayland/protocols.nix { };