2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, meson, ninja, wayland-scanner
|
|
|
|
, python3, wayland
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wayland-protocols";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.33";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
# https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/48
|
2024-01-02 11:29:13 +00:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform && stdenv.hostPlatform.linker == "bfd" && wayland.withLibraries;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-11-02 22:02:43 +00:00
|
|
|
url = "https://gitlab.freedesktop.org/wayland/${pname}/-/releases/${version}/downloads/${pname}-${version}.tar.xz";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-lPDFCwkNbmGgP2IEhGexmrvoUb5OEa57NvZfi5jDljo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
postPatch = lib.optionalString doCheck ''
|
|
|
|
patchShebangs tests/
|
|
|
|
'';
|
|
|
|
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ meson ninja wayland-scanner ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ python3 wayland ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Dtests=${lib.boolToString doCheck}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Wayland protocol extensions";
|
|
|
|
longDescription = ''
|
|
|
|
wayland-protocols contains Wayland protocols that add functionality not
|
|
|
|
available in the Wayland core protocol. Such protocols either add
|
|
|
|
completely new functionality, or extend the functionality of some other
|
|
|
|
protocol either in Wayland core, or some other protocol in
|
|
|
|
wayland-protocols.
|
|
|
|
'';
|
|
|
|
homepage = "https://gitlab.freedesktop.org/wayland/wayland-protocols";
|
|
|
|
license = lib.licenses.mit; # Expat version
|
2023-01-20 10:41:00 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru.version = version;
|
|
|
|
}
|