1 { lib, stdenv, fetchurl
3 , meson, ninja, wayland-scanner
7 stdenv.mkDerivation rec {
8 pname = "wayland-protocols";
11 # https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/48
12 doCheck = stdenv.hostPlatform == stdenv.buildPlatform && stdenv.hostPlatform.linker == "bfd" && wayland.withLibraries;
15 url = "https://gitlab.freedesktop.org/wayland/${pname}/-/releases/${version}/downloads/${pname}-${version}.tar.xz";
16 hash = "sha256-dFl5nTQMgpa2le+FfAfd7yTFoJsJq2p097kmQNKxuhE=";
19 postPatch = lib.optionalString doCheck ''
23 depsBuildBuild = [ pkg-config ];
24 nativeBuildInputs = [ meson ninja wayland-scanner ];
25 nativeCheckInputs = [ python3 wayland ];
27 mesonFlags = [ "-Dtests=${lib.boolToString doCheck}" ];
30 description = "Wayland protocol extensions";
32 wayland-protocols contains Wayland protocols that add functionality not
33 available in the Wayland core protocol. Such protocols either add
34 completely new functionality, or extend the functionality of some other
35 protocol either in Wayland core, or some other protocol in
38 homepage = "https://gitlab.freedesktop.org/wayland/wayland-protocols";
39 license = lib.licenses.mit; # Expat version
40 platforms = lib.platforms.all;
41 maintainers = with lib.maintainers; [ primeos ];
44 passthru.version = version;