sway-beta: Use the upstream patch to fix the build failure

This commit is contained in:
Michael Weiss 2019-03-11 18:46:35 +01:00
parent 88c3183581
commit 1240834176
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -19,17 +19,14 @@ stdenv.mkDerivation rec {
sha256 = "09cndc2nl39d3l7g5634xp0pxcz60pvc5277mfw89r22mh0j78rx"; sha256 = "09cndc2nl39d3l7g5634xp0pxcz60pvc5277mfw89r22mh0j78rx";
}; };
# TODO: The following patch introduced a compiler warning which leads to a patches = [
# build failure (we'll revert it for now as this patch is not supposed to # Fix for a compiler warning that causes a build failure
# change any functionality): # (see https://github.com/swaywm/sway/issues/3862):
patch-remove-unused-functions = fetchpatch { (fetchpatch {
url = "https://github.com/swaywm/sway/commit/2b70e8518b7327d29eec4f9593e9b8f4238cebfe.patch"; url = "https://github.com/swaywm/sway/commit/bcde298a719f60b9913133dbd2a169dedbc8dd7d.patch";
sha256 = "1bq1i8dzxwckahzna6s9swvhpj1c1ics14pc1f1jcxwya50lk1rz"; sha256 = "0r583nmqvq43ib93yv6flw8pj833v32lbs0q0xld56s3rnzvvdcp";
}; })
];
postPatch = ''
patch -p1 --reverse < ${patch-remove-unused-functions}
'';
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig meson ninja pkgconfig meson ninja