wlroots: init at 2017-10-31

In preparation for Sway 1.0 which will use wlroots instead of wlc.

+55
+35
pkgs/development/libraries/wlroots/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, meson, ninja, pkgconfig 2 + , wayland, mesa_noglu, wayland-protocols, libinput, libxkbcommon, pixman 3 + , xcbutilwm, libX11, libcap 4 + }: 5 + 6 + let pname = "wlroots"; 7 + version = "unstable-2017-10-31"; 8 + in stdenv.mkDerivation rec { 9 + name = "${pname}-${version}"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "swaywm"; 13 + repo = "wlroots"; 14 + rev = "7200d643363e988edf6777c38e7f8fcd451a2c50"; 15 + sha256 = "179raymkni1xzaph32zdhg7nfin0xfzrlnbnxkcr266k9y8k66ac"; 16 + }; 17 + 18 + # TODO: Temporary workaround for compilation errors 19 + patches = [ ./libdrm.patch ./no-werror.patch ]; 20 + 21 + nativeBuildInputs = [ meson ninja pkgconfig ]; 22 + 23 + buildInputs = [ 24 + wayland mesa_noglu wayland-protocols libinput libxkbcommon pixman 25 + xcbutilwm libX11 libcap 26 + ]; 27 + 28 + meta = with stdenv.lib; { 29 + description = "A modular Wayland compositor library"; 30 + inherit (src.meta) homepage; 31 + license = licenses.mit; 32 + platforms = platforms.linux; 33 + maintainers = with maintainers; [ primeos ]; 34 + }; 35 + }
+9
pkgs/development/libraries/wlroots/libdrm.patch
···
··· 1 + --- a/backend/meson.build 2017-10-31 22:08:01.112927610 +0100 2 + +++ b/backend/meson.build 2017-10-31 22:09:28.155264343 +0100 3 + @@ -43,5 +43,5 @@ 4 + 'wlr_backend', 5 + backend_files, 6 + include_directories: wlr_inc, 7 + - dependencies: [wayland_server, egl, gbm, libinput, systemd, elogind, wlr_render, wlr_protos], 8 + + dependencies: [wayland_server, egl, gbm, libinput, systemd, elogind, wlr_render, wlr_protos, drm], 9 + )
+10
pkgs/development/libraries/wlroots/no-werror.patch
···
··· 1 + --- a/meson.build 2017-10-31 22:08:01.132927689 +0100 2 + +++ b/meson.build 2017-10-31 22:20:58.215784350 +0100 3 + @@ -5,7 +5,6 @@ 4 + default_options: [ 5 + 'c_std=c11', 6 + 'warning_level=2', 7 + - 'werror=true', 8 + ], 9 + ) 10 +
+1
pkgs/top-level/all-packages.nix
··· 15072 spectrwm = callPackage ../applications/window-managers/spectrwm { }; 15073 15074 wlc = callPackage ../development/libraries/wlc { }; 15075 orbment = callPackage ../applications/window-managers/orbment { }; 15076 sway = callPackage ../applications/window-managers/sway { }; 15077 swaylock = callPackage ../applications/window-managers/sway { };
··· 15072 spectrwm = callPackage ../applications/window-managers/spectrwm { }; 15073 15074 wlc = callPackage ../development/libraries/wlc { }; 15075 + wlroots = callPackage ../development/libraries/wlroots { }; 15076 orbment = callPackage ../applications/window-managers/orbment { }; 15077 sway = callPackage ../applications/window-managers/sway { }; 15078 swaylock = callPackage ../applications/window-managers/sway { };