2016-06-01 18:35:49 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pango, libinput
|
|
|
|
, makeWrapper, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl, cairo
|
2017-02-15 15:28:01 +00:00
|
|
|
, wayland, wlc, libxkbcommon, pixman, fontconfig, pcre, json_c, dbus_libs, libcap
|
2017-07-10 20:54:03 +00:00
|
|
|
, xwayland, pam, gdk_pixbuf
|
2015-10-23 23:32:20 +00:00
|
|
|
}:
|
|
|
|
|
2016-07-17 07:31:41 +00:00
|
|
|
let
|
2017-07-10 21:00:22 +00:00
|
|
|
version = "0.13.0";
|
2016-07-17 07:31:41 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sway-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Sircmpwn";
|
|
|
|
repo = "sway";
|
|
|
|
rev = "${version}";
|
2017-07-10 21:00:22 +00:00
|
|
|
sha256 = "1vgk4rl51nx66yzpwg4yhnbj7wc30k5q0hh5lf8y0i1nvpal0p3q";
|
2016-07-17 07:31:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper cmake pkgconfig asciidoc libxslt docbook_xsl ];
|
|
|
|
|
2017-07-10 20:54:03 +00:00
|
|
|
buildInputs = [ wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs pango cairo libinput libcap xwayland pam gdk_pixbuf ];
|
2016-07-17 07:31:41 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i s@/etc/sway@$out/etc/sway@g CMakeLists.txt;
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
2017-07-10 20:56:36 +00:00
|
|
|
cmakeFlags = "-DVERSION=${version}";
|
2016-07-17 07:31:41 +00:00
|
|
|
installPhase = "PREFIX=$out make install";
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ wlc dbus_libs ];
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram $out/bin/sway \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}";
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "i3-compatible window manager for Wayland";
|
|
|
|
homepage = "http://swaywm.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|