@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, cmake
1+{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, cmake
22
33# dependencies
44, glib, libXinerama
@@ -73,6 +73,16 @@ stdenv.mkDerivation rec {
7373 sha256 = "15j8h251v9jpdg6h6wn1vb45pkk806pf9s5n3rdrps9r185w8hn8";
7474 };
7575
76+ patches = [
77+ # Patch to fix compilation on gcc-7 from conky PR
78+ # https://github.com/brndnmtthws/conky/pull/402
79+ (fetchpatch {
80+ name = "gcc7.patch";
81+ url = "https://github.com/brndnmtthws/conky/commit/6140122b82d50acc333e5d2a813cc1933ecc6d21.patch";
82+ sha256 = "1fblfj1w2kc0gshc2pq9lc1pxxsgmgh8byb1xs2v6amx15kj11k7";
83+ })
84+ ];
85+
7686 postPatch = ''
7787 sed -i -e '/include.*CheckIncludeFile)/i include(CheckIncludeFiles)' \
7888 cmake/ConkyPlatformChecks.cmake