mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
868082f616
Building the manual requires docbook_xsl; in sandboxed environments, the build would fail due to being unable to download missing docbook resources. Also include some minor improvements to the build recipe: - use fetchFromGitHub - move build-time dependencies to nativeBuildInputs xref: https://github.com/NixOS/nixpkgs/pull/13900
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, makeWrapper, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
|
, wayland, wlc, libxkbcommon, pixman, fontconfig, pcre, json_c, dbus_libs
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sway-${version}";
|
|
version = "git-2016-02-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Sircmpwn";
|
|
repo = "sway";
|
|
|
|
rev = "16e904634c65128610537bed7fcb16ac3bb45165";
|
|
sha256 = "04qvdjaarglq3qsjbb9crjkad3y1v7s51bk82sl8w26c71jbhklg";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper cmake pkgconfig asciidoc libxslt docbook_xsl ];
|
|
|
|
buildInputs = [ wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs ];
|
|
|
|
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; [ ];
|
|
};
|
|
}
|