Skip to content

Commit c35be63

Browse files
primeosglobin
authored andcommittedSep 27, 2017
wlc: Downgrade back to 0.0.9
Unfortunately wlc 0.0.10 seems to be the cause for segfaults on sway, way-cooler and orbment. This will also build wlc with all optional packages (i.e. zlib, valgrind and doxygen). (cherry picked from commit 2d640b9)
1 parent 53068f4 commit c35be63

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed
 

Diff for: ‎pkgs/applications/window-managers/sway/default.nix

+3-15
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,8 @@
66
}:
77

88
let
9+
# TODO: Sway 0.14.0 with wlc 0.0.10 segfaults
910
version = "0.13.0";
10-
# Temporary workaround (0.14.0 segfaults)
11-
wlc_009 = stdenv.lib.overrideDerivation wlc (oldAttrs: rec {
12-
name = "wlc-${version}";
13-
version = "0.0.9";
14-
15-
src = fetchFromGitHub {
16-
owner = "Cloudef";
17-
repo = "wlc";
18-
rev = "v${version}";
19-
fetchSubmodules = true;
20-
sha256 = "1r6jf64gs7n9a8129wsc0mdwhcv44p8k87kg0714rhx3g2w22asg";
21-
};
22-
});
2311
in stdenv.mkDerivation rec {
2412
name = "sway-${version}";
2513

@@ -35,7 +23,7 @@ in stdenv.mkDerivation rec {
3523
asciidoc libxslt docbook_xsl
3624
];
3725
buildInputs = [
38-
wayland wlc_009 libxkbcommon pixman fontconfig pcre json_c dbus_libs
26+
wayland wlc libxkbcommon pixman fontconfig pcre json_c dbus_libs
3927
pango cairo libinput libcap xwayland pam gdk_pixbuf libpthreadstubs
4028
libXdmcp
4129
];
@@ -48,7 +36,7 @@ in stdenv.mkDerivation rec {
4836
cmakeFlags = "-DVERSION=${version}";
4937
installPhase = "PREFIX=$out make install";
5038

51-
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ wlc_009 dbus_libs ];
39+
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ wlc dbus_libs ];
5240
preFixup = ''
5341
wrapProgram $out/bin/sway \
5442
--prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}";

Diff for: ‎pkgs/development/libraries/wlc/default.nix

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22
, wayland, pixman, libxkbcommon, libinput, libxcb, xcbutilwm, xcbutilimage, mesa
33
, libdrm, udev, libX11, libXdamage, systemd, dbus_libs, wayland-protocols
44
, libpthreadstubs, libXau, libXdmcp, libXext, libXxf86vm
5+
, withOptionalPackages ? true, zlib, valgrind, doxygen
56
}:
67

78
stdenv.mkDerivation rec {
89
name = "wlc-${version}";
9-
version = "0.0.10";
10+
version = "0.0.9"; # 0.0.10 currently causes segfaults
1011

1112
src = fetchFromGitHub {
1213
owner = "Cloudef";
1314
repo = "wlc";
1415
rev = "v${version}";
1516
fetchSubmodules = true;
16-
sha256 = "09kvwhrpgkxlagn9lgqxc80jbg56djn29a6z0n6h0dsm90ysyb2k";
17+
sha256 = "1r6jf64gs7n9a8129wsc0mdwhcv44p8k87kg0714rhx3g2w22asg";
1718
};
1819

1920
nativeBuildInputs = [ cmake pkgconfig ];
2021

2122
buildInputs = [
2223
wayland pixman libxkbcommon libinput libxcb xcbutilwm xcbutilimage mesa
2324
libdrm udev libX11 libXdamage systemd dbus_libs wayland-protocols
24-
libpthreadstubs libXau libXdmcp libXext libXxf86vm
25-
];
25+
libpthreadstubs libXau libXdmcp libXext libXxf86vm ]
26+
++ stdenv.lib.optionals withOptionalPackages [ zlib valgrind doxygen ];
2627

2728
doCheck = true;
2829
checkTarget = "test";

0 commit comments

Comments
 (0)