@@ -13,15 +13,19 @@ stdenv.mkDerivation rec {
1313 sha256 = "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg";
1414 };
1515
16− buildInputs = [libpng];
16+ buildInputs = [ libpng ];
17+
18+ # disable failing test on i686
19+ # https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html
20+ prePatch = stdenv.lib.optionalString stdenv.isi686 ''
21+ substituteInPlace test/Makefile.in --replace 'spline.test' ' '
22+ '';
1723
1824 patches = map fetchurl (import ./debian-patches.nix);
1925
2026 configureFlags = "--enable-libplotter"; # required for pstoedit
2127
22− # disable tests on i686 like ubuntu
23− # https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html
24− doCheck = if stdenv.isi686 then false else true;
28+ doCheck = true;
2529
2630 meta = {
2731 description = "Powerful C/C++ library for exporting 2D vector graphics";
@@ -45,9 +49,7 @@ stdenv.mkDerivation rec {
4549 homepage = http://www.gnu.org/software/plotutils/;
4650
4751 license = stdenv.lib.licenses.gpl2Plus;
48− maintainers = [
49− stdenv.lib.maintainers.marcweber
50− ];
52+ maintainers = [ stdenv.lib.maintainers.marcweber ];
5153 platforms = stdenv.lib.platforms.gnu;
5254 };
5355}