wayv: pull patch pending upstream inclusion for -fno-common toolchain support

Without the change build fails on upstream gcc-10 as:

    ld: process.o:(.bss+0x0): multiple definition of `child'; backend.o:(.bss+0x0): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-03 07:27:09 +01:00
parent 236cc2971a
commit d16032e754

View file

@ -1,4 +1,4 @@
{lib, stdenv, fetchFromGitHub, libX11}:
{lib, stdenv, fetchFromGitHub, fetchpatch, libX11}:
stdenv.mkDerivation rec {
pname = "wayv";
version = "0.3";
@ -10,6 +10,16 @@ stdenv.mkDerivation rec {
sha256 = "046dvaq6na1fyxz5nrjg13aaz6ific9wbygck0dknqqfmmjrsv3b";
};
patches = [
# Pull patch pending upstream inclusion for -fno-common toolchain support:
# https://github.com/mikemb/wayV/pull/1
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/mikemb/wayV/commit/b927793e2a2c92ff1f97b9df9e58c26e73e72012.patch";
sha256 = "19i10966b0n710dic64p5ajsllkjnz16bp0crxfy9vv08hj1xygi";
})
];
buildInputs = [ libX11 ];
postInstall = ''