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";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.31";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform && 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";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-oH+nIu2HZ27AINhncUvJovJMRk2nORLzlwbu71IZ4jg=";
|
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;
|
|
|
|
}
|