Skip to content

Commit 8958237

Browse files
dasj19jtojnar
authored andcommitted
gtk-sharp3: fixed build and removed broken flag.
1 parent 6206029 commit 8958237

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

  • pkgs/development/libraries/gtk-sharp
Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
{ stdenv, fetchurl, pkgconfig, mono
1+
{ stdenv
2+
, fetchurl
3+
, fetchpatch
4+
, pkgconfig
5+
, mono
26
, glib
37
, pango
48
, gtk3
@@ -14,29 +18,32 @@
1418
, monoDLLFixer
1519
}:
1620

17-
stdenv.mkDerivation {
18-
name = "gtk-sharp-2.99.3";
21+
stdenv.mkDerivation rec {
22+
pname = "gtk-sharp";
23+
version = "2.99.3";
1924

2025
builder = ./builder.sh;
2126
src = fetchurl {
22-
#"mirror://gnome/sources/gtk-sharp/2.99/gtk-sharp-2.99.3.tar.xz";
23-
url = "http://ftp.gnome.org/pub/GNOME/sources/gtk-sharp/2.99/gtk-sharp-2.99.3.tar.xz";
27+
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2428
sha256 = "18n3l9zcldyvn4lwi8izd62307mkhz873039nl6awrv285qzah34";
2529
};
2630

27-
# patch bad usage of glib, which wasn't tolerated anymore
28-
# prePatch = ''
29-
# for f in glib/glue/{thread,list,slist}.c; do
30-
# sed -i 's,#include <glib/.*\.h>,#include <glib.h>,g' "$f"
31-
# done
32-
# '';
33-
3431
nativeBuildInputs = [ pkgconfig ];
3532
buildInputs = [
3633
mono glib pango gtk3 GConf libglade libgnomecanvas
3734
libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2
3835
];
3936

37+
patches = [
38+
# Fixes MONO_PROFILE_ENTER_LEAVE undeclared when compiling against newer versions of mono.
39+
# @see https://github.com/mono/gtk-sharp/pull/266
40+
(fetchpatch {
41+
name = "MONO_PROFILE_ENTER_LEAVE.patch";
42+
url = "https://github.com/mono/gtk-sharp/commit/401df51bc461de93c1a78b6a7a0d5adc63cf186c.patch";
43+
sha256 = "0hrkcr5a7wkixnyp60v4d6j3arsb63h54rd30lc5ajfjb3p92kcf";
44+
})
45+
];
46+
4047
dontStrip = true;
4148

4249
inherit monoDLLFixer;
@@ -47,6 +54,5 @@ stdenv.mkDerivation {
4754

4855
meta = {
4956
platforms = stdenv.lib.platforms.linux;
50-
broken = true; # 2018-09-21, build has failed since 2018-04-28
5157
};
5258
}

0 commit comments

Comments
 (0)