2016-03-14 11:11:38 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, makeWrapper, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
|
|
|
, wayland, wlc, libxkbcommon, pixman, fontconfig, pcre, json_c, dbus_libs
|
2015-10-24 00:32:20 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sway-${version}";
|
2016-02-09 22:41:01 +00:00
|
|
|
version = "git-2016-02-08";
|
2015-10-24 00:32:20 +01:00
|
|
|
|
2016-03-14 11:11:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Sircmpwn";
|
|
|
|
repo = "sway";
|
|
|
|
|
|
|
|
rev = "16e904634c65128610537bed7fcb16ac3bb45165";
|
|
|
|
sha256 = "04qvdjaarglq3qsjbb9crjkad3y1v7s51bk82sl8w26c71jbhklg";
|
2015-10-24 00:32:20 +01:00
|
|
|
};
|
|
|
|
|
2016-03-14 11:11:38 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper cmake pkgconfig asciidoc libxslt docbook_xsl ];
|
2015-10-24 00:32:20 +01:00
|
|
|
|
2016-03-14 11:11:38 +00:00
|
|
|
buildInputs = [ wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs ];
|
2015-10-24 00:32:20 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i s@/etc/sway@$out/etc/sway@g CMakeLists.txt;
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
installPhase = "PREFIX=$out make install";
|
|
|
|
|
2016-03-14 11:11:38 +00:00
|
|
|
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ wlc dbus_libs ];
|
2015-10-24 00:32:20 +01:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram $out/bin/sway \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}";
|
|
|
|
'';
|
|
|
|
|
2016-03-14 11:11:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-10-24 00:32:20 +01:00
|
|
|
description = "i3-compatible window manager for Wayland";
|
|
|
|
homepage = "http://swaywm.org";
|
2016-03-14 11:11:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ];
|
2015-10-24 00:32:20 +01:00
|
|
|
};
|
|
|
|
}
|