Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nixos/modules/programs/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ in {
type = with types; listOf package;
default = with pkgs; [
swaylock swayidle
xwayland rxvt_unicode dmenu
xwayland alacritty dmenu
rxvt_unicode # For backward compatibility (old default terminal)
];
defaultText = literalExample ''
with pkgs; [ swaylock swayidle xwayland rxvt_unicode dmenu ];
Expand Down
18 changes: 12 additions & 6 deletions pkgs/applications/window-managers/cage/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{ stdenv, fetchFromGitHub
{ stdenv, fetchFromGitHub, fetchpatch
, meson, ninja, pkgconfig, makeWrapper
, wlroots, wayland, wayland-protocols, pixman, libxkbcommon
, systemd, libGL, libX11
, xwayland ? null
}:

stdenv.mkDerivation rec {
pname = "cage";
version = "0.1.1";
pname = "cage-unstable";
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 {
owner = "Hjdskes";
repo = pname;
rev = "v${version}";
sha256 = "1vp4mfkflrjmlgyx5mkbzdi3iq58m76q7l9dfrsk85xn0642d6q1";
repo = "cage";
rev = "cc1f975c442ebd691b70196d76aa120ead717810";
sha256 = "1gkqx26pvlw00b3fgx6sh87yyjfzyj51jwxvbf9k117npkrf4b2g";
};

nativeBuildInputs = [ meson ninja pkgconfig makeWrapper ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/window-managers/sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

stdenv.mkDerivation rec {
pname = "sway-unwrapped";
version = "1.2";
version = "1.4";

src = fetchFromGitHub {
owner = "swaywm";
repo = "sway";
rev = version;
sha256 = "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd";
sha256 = "11qf89y3q92g696a6f4d23qb44gqixg6qxq740vwv2jw59ms34ja";
};

patches = [
Expand Down
9 changes: 7 additions & 2 deletions pkgs/applications/window-managers/sway/idle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@

stdenv.mkDerivation rec {
pname = "swayidle";
version = "1.5";
version = "1.6";

src = fetchFromGitHub {
owner = "swaywm";
repo = "swayidle";
rev = version;
sha256 = "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n";
sha256 = "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r";
};

postPatch = ''
substituteInPlace meson.build \
--replace "version: '1.5'" "version: '${version}'"
'';

nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
buildInputs = [ wayland wayland-protocols systemd ];

Expand Down
7 changes: 4 additions & 3 deletions pkgs/applications/window-managers/sway/lock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@

stdenv.mkDerivation rec {
pname = "swaylock";
version = "1.4";
version = "1.5";

src = fetchFromGitHub {
owner = "swaywm";
repo = "swaylock";
rev = version;
sha256 = "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982";
sha256 = "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf";
};

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 ];
Expand Down
17 changes: 4 additions & 13 deletions pkgs/development/libraries/wlroots/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, fetchpatch
, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman
, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
, libpng, ffmpeg_4, freerdp
, libpng, ffmpeg_4
}:

stdenv.mkDerivation rec {
pname = "wlroots";
version = "0.8.1";
version = "0.10.0";

src = fetchFromGitHub {
owner = "swaywm";
repo = "wlroots";
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):
outputs = [ "out" "examples" ];

Expand All @@ -32,7 +23,7 @@ stdenv.mkDerivation rec {
buildInputs = [
wayland libGL wayland-protocols libinput libxkbcommon pixman
xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
libpng ffmpeg_4 freerdp
libpng ffmpeg_4
];

mesonFlags = [
Expand Down