Skip to content

Commit

Permalink
dbus_cplusplus: fix build with gcc7 via Fedra patches
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Feb 18, 2018
1 parent 088d7c9 commit 0a52c59
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions pkgs/development/libraries/dbus-cplusplus/default.nix
Expand Up @@ -10,11 +10,26 @@ stdenv.mkDerivation rec {
sha256 = "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw";
};

patches = [( fetchurl {
url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/dbus-c%2B%2B/files/dbus-c%2B%2B-0.9.0-gcc-4.7.patch;
name = "gcc-4.7.patch";
sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
})];
patches = [
(fetchurl {
name = "gcc-4.7.patch";
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/"
+ "dbus-c%2B%2B/files/dbus-c%2B%2B-0.9.0-gcc-4.7.patch";
sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
})
(fetchurl {
name = "writechar.patch"; # since gcc7
url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
+ "dbus-c++-writechar.patch?id=7f371172f5c";
sha256 = "1kkg4gbpm4hp87l25zw2a3r9c58g7vvgzcqgiman734i66zsbb9l";
})
(fetchurl {
name = "threading.patch"; # since gcc7
url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
+ "dbus-c++-threading.patch?id=7f371172f5c";
sha256 = "1h362anx3wyxm5lq0v8girmip1jmkdbijrmbrq7k5pp47zkhwwrq";
})
];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus glib expat ];
Expand Down

1 comment on commit 0a52c59

@vcunat
Copy link
Member Author

@vcunat vcunat commented on 0a52c59 Feb 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc maintainer @cillianderoiste.

Please sign in to comment.