1 { lib, stdenv, fetchurl
3 , meson, ninja, wayland-scanner
7 stdenv.mkDerivation rec {
8 pname = "wayland-protocols";
11 doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
14 url = "https://gitlab.freedesktop.org/wayland/${pname}/-/releases/${version}/downloads/${pname}-${version}.tar.xz";
15 hash = "sha256-kEbxCkJdTioAlloDrPtrP7V1pWUDrHLCuGghxpZTN1w=";
18 postPatch = lib.optionalString doCheck ''
22 depsBuildBuild = [ pkg-config ];
23 nativeBuildInputs = [ meson ninja wayland-scanner ];
24 checkInputs = [ python3 wayland ];
26 mesonFlags = [ "-Dtests=${lib.boolToString doCheck}" ];
29 description = "Wayland protocol extensions";
31 wayland-protocols contains Wayland protocols that add functionality not
32 available in the Wayland core protocol. Such protocols either add
33 completely new functionality, or extend the functionality of some other
34 protocol either in Wayland core, or some other protocol in
37 homepage = "https://gitlab.freedesktop.org/wayland/wayland-protocols";
38 license = lib.licenses.mit; # Expat version
39 platforms = lib.platforms.linux;
40 maintainers = with lib.maintainers; [ primeos ];
43 passthru.version = version;