diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/wayland')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/wayland/1.9.nix | 33 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/wayland/default.nix | 33 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/wayland/protocols.nix | 27 |
3 files changed, 93 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/wayland/1.9.nix b/nixpkgs/pkgs/development/libraries/wayland/1.9.nix new file mode 100644 index 000000000000..750a786c3fca --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/wayland/1.9.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchurl, pkgconfig +, libffi, libxml2 +, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0) +}: + +# Require the optional to be enabled until upstream fixes or removes the configure flag +assert expat != null; + +stdenv.mkDerivation rec { + name = "wayland-${version}"; + version = "1.9.0"; + + src = fetchurl { + url = "https://wayland.freedesktop.org/releases/${name}.tar.xz"; + sha256 = "1yhy62vkbq8j8c9zaa6yzvn75cd99kfa8n2zfdwl80x019r711ww"; + }; + + configureFlags = [ "--with-scanner" "--disable-documentation" ]; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ libffi /* docbook_xsl doxygen graphviz libxslt xmlto */ expat libxml2 ]; + + meta = { + description = "Reference implementation of the wayland protocol"; + homepage = https://wayland.freedesktop.org/; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ codyopel wkennington ]; + }; + + passthru.version = version; +} diff --git a/nixpkgs/pkgs/development/libraries/wayland/default.nix b/nixpkgs/pkgs/development/libraries/wayland/default.nix new file mode 100644 index 000000000000..866b1232aef5 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/wayland/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchurl, pkgconfig +, libffi, libxml2 +, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0) +}: + +# Require the optional to be enabled until upstream fixes or removes the configure flag +assert expat != null; + +stdenv.mkDerivation rec { + name = "wayland-${version}"; + version = "1.16.0"; + + src = fetchurl { + url = "https://wayland.freedesktop.org/releases/${name}.tar.xz"; + sha256 = "1xajhxad43izq9f7sbww1hlg42nayijy8xnp21kgpk09c6sw4wjf"; + }; + + configureFlags = [ "--with-scanner" "--disable-documentation" ]; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ libffi /* docbook_xsl doxygen graphviz libxslt xmlto */ expat libxml2 ]; + + meta = { + description = "Reference implementation of the wayland protocol"; + homepage = https://wayland.freedesktop.org/; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ codyopel wkennington ]; + }; + + passthru.version = version; +} diff --git a/nixpkgs/pkgs/development/libraries/wayland/protocols.nix b/nixpkgs/pkgs/development/libraries/wayland/protocols.nix new file mode 100644 index 000000000000..b14dc03385cf --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/wayland/protocols.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchurl, pkgconfig +, wayland +}: + +stdenv.mkDerivation rec { + name = "wayland-protocols-${version}"; + version = "1.17"; + + src = fetchurl { + url = "https://wayland.freedesktop.org/releases/${name}.tar.xz"; + sha256 = "0bw1sqixqk2a7mqw630cs4dlgcp5yib90vyikzm3lr05jz7ij4yz"; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ wayland ]; + + meta = { + description = "Wayland protocol extensions"; + homepage = https://wayland.freedesktop.org/; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ ]; + }; + + passthru.version = version; +} |