sway: cleanup
This commit is contained in:
parent
c7285c3342
commit
8cfbf2be5b
@ -1,8 +1,9 @@
|
|||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, makeWrapper, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
||||||
, wayland, wlc, libxkbcommon, pixman, fontconfig, pcre, json_c, dbus_libs
|
, wayland, wlc, libxkbcommon, pcre, json_c, dbus_libs
|
||||||
, pango, cairo, libinput, libcap, xwayland, pam, gdk_pixbuf, libpthreadstubs
|
, pango, cairo, libinput, libcap, pam, gdk_pixbuf, libpthreadstubs
|
||||||
, libXdmcp
|
, libXdmcp
|
||||||
|
, buildDocs ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -17,28 +18,17 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeWrapper cmake pkgconfig
|
cmake pkgconfig
|
||||||
asciidoc libxslt docbook_xsl
|
] ++ stdenv.lib.optional buildDocs [ asciidoc libxslt docbook_xsl ];
|
||||||
];
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs
|
wayland wlc libxkbcommon pcre json_c dbus_libs
|
||||||
pango cairo libinput libcap xwayland pam gdk_pixbuf libpthreadstubs
|
pango cairo libinput libcap pam gdk_pixbuf libpthreadstubs
|
||||||
libXdmcp
|
libXdmcp
|
||||||
];
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
enableParallelBuilding = true;
|
||||||
sed -i s@/etc/sway@$out/etc/sway@g CMakeLists.txt;
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeFlags = "PREFIX=$(out)";
|
|
||||||
cmakeFlags = "-DVERSION=${version}";
|
cmakeFlags = "-DVERSION=${version}";
|
||||||
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "i3-compatible window manager for Wayland";
|
description = "i3-compatible window manager for Wayland";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user