mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
|
, wayland, wlc, libxkbcommon, pcre, json_c, dbus_libs
|
|
, pango, cairo, libinput, libcap, pam, gdk_pixbuf, libpthreadstubs
|
|
, libXdmcp
|
|
, buildDocs ? true
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sway-${version}";
|
|
version = "0.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaywm";
|
|
repo = "sway";
|
|
rev = version;
|
|
sha256 = "00prns3dnafd19ap774p8v994i3p185ji0dnp2xxbkgh2z7sbwpi";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake pkgconfig
|
|
] ++ stdenv.lib.optional buildDocs [ asciidoc libxslt docbook_xsl ];
|
|
buildInputs = [
|
|
wayland wlc libxkbcommon pcre json_c dbus_libs
|
|
pango cairo libinput libcap pam gdk_pixbuf libpthreadstubs
|
|
libXdmcp
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
cmakeFlags = "-DVERSION=${version} -DLD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "i3-compatible window manager for Wayland";
|
|
homepage = http://swaywm.org;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ primeos ]; # Trying to keep it up-to-date.
|
|
};
|
|
}
|