2016-06-01 19:35:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pango, libinput
|
|
|
|
, makeWrapper, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl, cairo
|
2016-03-14 11:11:38 +00:00
|
|
|
, wayland, wlc, libxkbcommon, pixman, fontconfig, pcre, json_c, dbus_libs
|
2015-10-24 00:32:20 +01:00
|
|
|
}:
|
|
|
|
|
2016-07-17 08:31:41 +01:00
|
|
|
let
|
2016-09-04 21:02:57 +01:00
|
|
|
version = "0.9";
|
2016-07-17 08:31:41 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sway-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Sircmpwn";
|
|
|
|
repo = "sway";
|
|
|
|
rev = "${version}";
|
2016-09-04 21:02:57 +01:00
|
|
|
sha256 = "0qqqg23rknxnjcgvkfrx3pijqc3dvi74qmmavq07vy2qfs1xlwg0";
|
2016-07-17 08:31:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper cmake pkgconfig asciidoc libxslt docbook_xsl ];
|
|
|
|
|
|
|
|
buildInputs = [ wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs pango cairo libinput ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i s@/etc/sway@$out/etc/sway@g CMakeLists.txt;
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
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; [ ];
|
|
|
|
};
|
|
|
|
}
|