git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32028 from andir/gcc-7-conky

conky: fix compilation with gcc-7

commitbfaf22a9dfe679293718bbacb3a2a00678a705c4 authoradisbladis <adisbladis@gmail.com> dateSat 25 Nov 2017, 23:18 (9 years ago) parent8627859141644e
1 file changed+11−1
pkgs/os-specific/linux/conky/default.nix+11−1
pkgs/os-specific/linux/conky/default.nix+11−1
@@ -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