mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, pango, libinput
|
|
, makeWrapper, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl, cairo
|
|
, wayland, wlc, libxkbcommon, pixman, fontconfig, pcre, json_c, dbus_libs, libcap
|
|
}:
|
|
|
|
let
|
|
version = "0.11";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "sway-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Sircmpwn";
|
|
repo = "sway";
|
|
rev = "${version}";
|
|
sha256 = "01k01f72kh90fwgqh2hgg6dv9931x4v18bzz11b47mn7p9z68ddv";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper cmake pkgconfig asciidoc libxslt docbook_xsl ];
|
|
|
|
buildInputs = [ wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs pango cairo libinput libcap ];
|
|
|
|
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; [ ];
|
|
};
|
|
}
|