summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/wayland/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/wayland/default.nix')
-rw-r--r--pkgs/development/libraries/wayland/default.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/development/libraries/wayland/default.nix b/pkgs/development/libraries/wayland/default.nix
index 07671ddebddc..a06d75e53dc4 100644
--- a/pkgs/development/libraries/wayland/default.nix
+++ b/pkgs/development/libraries/wayland/default.nix
@@ -5,7 +5,7 @@
, meson
, pkg-config
, ninja
-, wayland
+, wayland-scanner
, expat
, libxml2
, withLibraries ? stdenv.isLinux
@@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
pkg-config
ninja
] ++ lib.optionals isCross [
- wayland # For wayland-scanner during the build
+ wayland-scanner
] ++ lib.optionals withDocumentation [
(graphviz-nox.override { pango = null; }) # To avoid an infinite recursion
doxygen
@@ -85,6 +85,18 @@ stdenv.mkDerivation rec {
docbook_xml_dtd_42
];
+ postFixup = ''
+ # The pkg-config file is required for cross-compilation:
+ mkdir -p $bin/lib/pkgconfig/
+ cat <<EOF > $bin/lib/pkgconfig/wayland-scanner.pc
+ wayland_scanner=$bin/bin/wayland-scanner
+
+ Name: Wayland Scanner
+ Description: Wayland scanner
+ Version: ${version}
+ EOF
+ '';
+
meta = with lib; {
description = "Core Wayland window system code and protocol";
longDescription = ''
@@ -99,6 +111,8 @@ stdenv.mkDerivation rec {
license = licenses.mit; # Expat version
platforms = if withLibraries then platforms.linux else platforms.unix;
maintainers = with maintainers; [ primeos codyopel qyliss ];
+ # big sur doesn't support gcc stdenv and wayland doesn't build with clang
+ broken = stdenv.isDarwin;
};
passthru.version = version;