Merge pull request #76787 from primeos/sway

sway: 1.2 -> 1.4, wlroots: 0.8.1 -> 0.10.0
This commit is contained in:
Michael Weiss 2020-01-23 14:19:59 +01:00 committed by GitHub
commit 5a4b93e33c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 27 deletions

View File

@ -87,7 +87,8 @@ in {
type = with types; listOf package; type = with types; listOf package;
default = with pkgs; [ default = with pkgs; [
swaylock swayidle swaylock swayidle
xwayland rxvt_unicode dmenu xwayland alacritty dmenu
rxvt_unicode # For backward compatibility (old default terminal)
]; ];
defaultText = literalExample '' defaultText = literalExample ''
with pkgs; [ swaylock swayidle xwayland rxvt_unicode dmenu ]; with pkgs; [ swaylock swayidle xwayland rxvt_unicode dmenu ];

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub { stdenv, fetchFromGitHub, fetchpatch
, meson, ninja, pkgconfig, makeWrapper , meson, ninja, pkgconfig, makeWrapper
, wlroots, wayland, wayland-protocols, pixman, libxkbcommon , wlroots, wayland, wayland-protocols, pixman, libxkbcommon
, systemd, libGL, libX11 , systemd, libGL, libX11
@ -6,14 +6,20 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cage"; pname = "cage-unstable";
version = "0.1.1"; version = "2020-01-18";
# The last stable release (0.1.1) would require at least the following 3 patches:
# - https://github.com/Hjdskes/cage/commit/33bb3c818c5971777b6f09d8821e7f078d38d262.patch
# - https://github.com/Hjdskes/cage/commit/51e6c760da51e2b885737d61a61cdc965bb9269d.patch
# - https://github.com/Hjdskes/cage/commit/84216ca2a417b237ad61c11e2f3ebbcb91681ece.patch
# Which need to be adapted due to other changes. At this point it seems
# better to use the current master version until the next stable release.
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Hjdskes"; owner = "Hjdskes";
repo = pname; repo = "cage";
rev = "v${version}"; rev = "cc1f975c442ebd691b70196d76aa120ead717810";
sha256 = "1vp4mfkflrjmlgyx5mkbzdi3iq58m76q7l9dfrsk85xn0642d6q1"; sha256 = "1gkqx26pvlw00b3fgx6sh87yyjfzyj51jwxvbf9k117npkrf4b2g";
}; };
nativeBuildInputs = [ meson ninja pkgconfig makeWrapper ]; nativeBuildInputs = [ meson ninja pkgconfig makeWrapper ];

View File

@ -8,13 +8,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sway-unwrapped"; pname = "sway-unwrapped";
version = "1.2"; version = "1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "swaywm"; owner = "swaywm";
repo = "sway"; repo = "sway";
rev = version; rev = version;
sha256 = "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd"; sha256 = "11qf89y3q92g696a6f4d23qb44gqixg6qxq740vwv2jw59ms34ja";
}; };
patches = [ patches = [

View File

@ -5,15 +5,20 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "swayidle"; pname = "swayidle";
version = "1.5"; version = "1.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "swaywm"; owner = "swaywm";
repo = "swayidle"; repo = "swayidle";
rev = version; rev = version;
sha256 = "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"; sha256 = "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r";
}; };
postPatch = ''
substituteInPlace meson.build \
--replace "version: '1.5'" "version: '${version}'"
'';
nativeBuildInputs = [ meson ninja pkgconfig scdoc ]; nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
buildInputs = [ wayland wayland-protocols systemd ]; buildInputs = [ wayland wayland-protocols systemd ];

View File

@ -5,17 +5,18 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "swaylock"; pname = "swaylock";
version = "1.4"; version = "1.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "swaywm"; owner = "swaywm";
repo = "swaylock"; repo = "swaylock";
rev = version; rev = version;
sha256 = "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"; sha256 = "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf";
}; };
postPatch = '' postPatch = ''
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build substituteInPlace meson.build \
--replace "version: '1.4'" "version: '${version}'"
''; '';
nativeBuildInputs = [ meson ninja pkgconfig scdoc ]; nativeBuildInputs = [ meson ninja pkgconfig scdoc ];

View File

@ -1,29 +1,20 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, fetchpatch { stdenv, fetchFromGitHub, meson, ninja, pkgconfig, fetchpatch
, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman , wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman
, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa , xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
, libpng, ffmpeg_4, freerdp , libpng, ffmpeg_4
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wlroots"; pname = "wlroots";
version = "0.8.1"; version = "0.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "swaywm"; owner = "swaywm";
repo = "wlroots"; repo = "wlroots";
rev = version; rev = version;
sha256 = "1ak86kx617c81dy85wg9rldy1z3n8ch93cjc05a4j6sifv0nkyfm"; sha256 = "0c0q1p9yss5kx4430ik3n89drqpmm2bvgl8fjlf6prac1a7xzqn8";
}; };
patches = [
# add missing header that changed in mesa-19.2.2
# https://github.com/swaywm/wlroots/issues/1862
(fetchpatch {
url = "https://github.com/swaywm/wlroots/commit/d113e48a2a32542fe6e12f1759f07888364609bf.diff";
sha256 = "1h09j1gmnzlz4py92a92chgy8xzsd8h8xn5irq9s2hq4cla66h87";
})
];
# $out for the library and $examples for the example programs (in examples): # $out for the library and $examples for the example programs (in examples):
outputs = [ "out" "examples" ]; outputs = [ "out" "examples" ];
@ -32,7 +23,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
wayland libGL wayland-protocols libinput libxkbcommon pixman wayland libGL wayland-protocols libinput libxkbcommon pixman
xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
libpng ffmpeg_4 freerdp libpng ffmpeg_4
]; ];
mesonFlags = [ mesonFlags = [