lol
1{ stdenv, fetchurl, pkgconfig, mono
2, glib
3, pango
4, gtk2
5, GConf ? null
6, libglade ? null
7, libgtkhtml ? null
8, gtkhtml ? null
9, libgnomecanvas ? null
10, libgnomeui ? null
11, libgnomeprint ? null
12, libgnomeprintui ? null
13, libxml2
14, monoDLLFixer
15}:
16
17stdenv.mkDerivation {
18 name = "gtk-sharp-2.12.10";
19
20 builder = ./builder.sh;
21 src = fetchurl {
22 url = mirror://gnome/sources/gtk-sharp/2.12/gtk-sharp-2.12.10.tar.gz;
23 sha256 = "1y55vc2cp4lggmbil2lb28d0gn71iq6wfyja1l9mya5xll8svzwc";
24 };
25
26 # patches = [ ./dllmap-glue.patch ];
27
28 # patch bad usage of glib, which wasn't tolerated anymore
29 prePatch = ''
30 for f in glib/glue/{thread,list,slist}.c; do
31 sed -i 's,#include <glib/.*\.h>,#include <glib.h>,g' "$f"
32 done
33 '';
34
35 buildInputs = [
36 pkgconfig mono glib pango gtk2 GConf libglade libgnomecanvas
37 libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2
38 ];
39
40 dontStrip = true;
41
42 inherit monoDLLFixer;
43
44 passthru = {
45 gtk = gtk2;
46 };
47
48 meta = {
49 platforms = stdenv.lib.platforms.linux;
50 };
51}