about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/wlroots
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-08-14 00:02:05 +0000
committerAlyssa Ross <hi@alyssa.is>2019-08-14 00:02:05 +0000
commit44e04ea2730f8e3b863b81b0056babe233c244f6 (patch)
treeb22ffce530b133cbff92efab20c213dde9341585 /nixpkgs/pkgs/development/libraries/wlroots
parent333b88dae543dde25da6f3ed902b693ab30df399 (diff)
downloadnixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.tar
nixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.tar.gz
nixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.tar.bz2
nixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.tar.lz
nixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.tar.xz
nixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.tar.zst
nixlib-44e04ea2730f8e3b863b81b0056babe233c244f6.zip
wlroots: revert to upstream
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/wlroots')
-rw-r--r--nixpkgs/pkgs/development/libraries/wlroots/default.nix31
1 files changed, 13 insertions, 18 deletions
diff --git a/nixpkgs/pkgs/development/libraries/wlroots/default.nix b/nixpkgs/pkgs/development/libraries/wlroots/default.nix
index 800f3e7ac1b4..b85616842ea6 100644
--- a/nixpkgs/pkgs/development/libraries/wlroots/default.nix
+++ b/nixpkgs/pkgs/development/libraries/wlroots/default.nix
@@ -1,10 +1,7 @@
-{ stdenv, lib, fetchFromGitHub, meson, ninja, pkgconfig
-, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman, mesa
-
-, libcapSupport ? true, libcap
-, x11Support ? true, libX11
-, xcbIcccmSupport ? x11Support, xcbutilwm
-, xcbErrorsSupport ? x11Support, xcbutilerrors
+{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
+, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman
+, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
+, libpng, ffmpeg_4, freerdp
 }:
 
 stdenv.mkDerivation rec {
@@ -25,17 +22,15 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ meson ninja pkgconfig ];
 
   buildInputs = [
-    wayland libGL wayland-protocols libinput libxkbcommon pixman mesa
-  ] ++ lib.optional libcapSupport libcap
-    ++ lib.optional x11Support libX11
-    ++ lib.optional xcbErrorsSupport xcbutilerrors
-    ++ lib.optional xcbIcccmSupport xcbutilwm;
+    wayland libGL wayland-protocols libinput libxkbcommon pixman
+    xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
+    libpng ffmpeg_4 freerdp
+  ];
 
-  mesonFlags = [ "-Dlogind=enabled" ]
-    ++ lib.optional libcapSupport "-Dlibcap=enabled"
-    ++ lib.optionals x11Support [ "-Dxwayland=enabled" "-Dx11-backend=enabled" ]
-    ++ lib.optional xcbErrorsSupport "-Dxcb-errors=enabled"
-    ++ lib.optional xcbIcccmSupport  "-Dxcb-icccm=enabled";
+  mesonFlags = [
+    "-Dlibcap=enabled" "-Dlogind=enabled" "-Dxwayland=enabled" "-Dx11-backend=enabled"
+    "-Dxcb-icccm=enabled" "-Dxcb-errors=enabled"
+  ];
 
   postPatch = ''
     # It happens from time to time that the version wasn't updated:
@@ -76,7 +71,7 @@ stdenv.mkDerivation rec {
     done
   '';
 
-  meta = with lib; {
+  meta = with stdenv.lib; {
     description = "A modular Wayland compositor library";
     inherit (src.meta) homepage;
     license     = licenses.mit;