nixpkgs/pkgs/applications/window-managers/sway/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub
2017-10-24 15:43:19 +00:00
, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
, wayland, wlc, libxkbcommon, pcre, json_c, dbus_libs
, pango, cairo, libinput, libcap, pam, gdk_pixbuf, libpthreadstubs
, libXdmcp
2017-10-24 15:43:19 +00:00
, buildDocs ? true
}:
2017-10-17 01:47:59 +00:00
stdenv.mkDerivation rec {
name = "sway-${version}";
2018-04-13 19:56:57 +00:00
version = "0.15.2";
2016-07-17 07:31:41 +00:00
src = fetchFromGitHub {
2017-11-07 21:16:50 +00:00
owner = "swaywm";
repo = "sway";
2017-11-07 21:16:50 +00:00
rev = version;
2018-04-13 19:56:57 +00:00
sha256 = "1p9j5gv85lsgj4z28qja07dqyvqk41w6mlaflvvm9yxafx477g5n";
};
2016-07-17 07:31:41 +00:00
nativeBuildInputs = [
2017-10-24 15:43:19 +00:00
cmake pkgconfig
] ++ stdenv.lib.optional buildDocs [ asciidoc libxslt docbook_xsl ];
buildInputs = [
2017-10-24 15:43:19 +00:00
wayland wlc libxkbcommon pcre json_c dbus_libs
pango cairo libinput libcap pam gdk_pixbuf libpthreadstubs
libXdmcp
];
2016-07-17 07:31:41 +00:00
2017-10-24 15:43:19 +00:00
enableParallelBuilding = true;
2016-07-17 07:31:41 +00:00
cmakeFlags = "-DVERSION=${version} -DLD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib";
2016-07-17 07:31:41 +00:00
meta = with stdenv.lib; {
description = "i3-compatible window manager for Wayland";
homepage = http://swaywm.org;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ]; # Trying to keep it up-to-date.
};
}