2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv
|
2020-07-13 03:22:23 -07:00
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
2021-01-18 22:50:56 -08:00
|
|
|
, pkg-config
|
2020-07-13 03:22:23 -07:00
|
|
|
, mono
|
2005-02-26 15:45:19 -08:00
|
|
|
, glib
|
|
|
|
, pango
|
2016-01-24 04:43:13 -08:00
|
|
|
, gtk3
|
2005-06-17 13:00:12 -07:00
|
|
|
, GConf ? null
|
2005-02-26 15:45:19 -08:00
|
|
|
, libglade ? null
|
|
|
|
, libgtkhtml ? null
|
|
|
|
, gtkhtml ? null
|
|
|
|
, libgnomecanvas ? null
|
|
|
|
, libgnomeui ? null
|
|
|
|
, libgnomeprint ? null
|
|
|
|
, libgnomeprintui ? null
|
2005-03-03 09:19:58 -08:00
|
|
|
, libxml2
|
|
|
|
, monoDLLFixer
|
|
|
|
}:
|
2005-02-22 12:54:26 -08:00
|
|
|
|
2020-07-13 03:22:23 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtk-sharp";
|
|
|
|
version = "2.99.3";
|
2005-02-22 12:54:26 -08:00
|
|
|
|
2005-03-03 09:19:58 -08:00
|
|
|
builder = ./builder.sh;
|
2005-02-22 12:54:26 -08:00
|
|
|
src = fetchurl {
|
2021-01-21 09:00:13 -08:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2016-01-24 04:43:13 -08:00
|
|
|
sha256 = "18n3l9zcldyvn4lwi8izd62307mkhz873039nl6awrv285qzah34";
|
2005-02-22 12:54:26 -08:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2005-02-26 15:45:19 -08:00
|
|
|
buildInputs = [
|
2017-09-14 12:24:37 -07:00
|
|
|
mono glib pango gtk3 GConf libglade libgnomecanvas
|
2005-02-26 15:45:19 -08:00
|
|
|
libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2
|
|
|
|
];
|
|
|
|
|
2020-07-13 03:22:23 -07:00
|
|
|
patches = [
|
|
|
|
# Fixes MONO_PROFILE_ENTER_LEAVE undeclared when compiling against newer versions of mono.
|
|
|
|
# @see https://github.com/mono/gtk-sharp/pull/266
|
|
|
|
(fetchpatch {
|
|
|
|
name = "MONO_PROFILE_ENTER_LEAVE.patch";
|
|
|
|
url = "https://github.com/mono/gtk-sharp/commit/401df51bc461de93c1a78b6a7a0d5adc63cf186c.patch";
|
|
|
|
sha256 = "0hrkcr5a7wkixnyp60v4d6j3arsb63h54rd30lc5ajfjb3p92kcf";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2010-06-22 14:07:09 -07:00
|
|
|
dontStrip = true;
|
|
|
|
|
2005-03-03 09:19:58 -08:00
|
|
|
inherit monoDLLFixer;
|
2010-06-22 14:07:09 -07:00
|
|
|
|
|
|
|
passthru = {
|
2016-01-24 04:43:13 -08:00
|
|
|
inherit gtk3;
|
2010-06-22 14:07:09 -07:00
|
|
|
};
|
2016-08-02 09:06:29 -07:00
|
|
|
|
|
|
|
meta = {
|
2021-01-21 09:00:13 -08:00
|
|
|
platforms = lib.platforms.linux;
|
2016-08-02 09:06:29 -07:00
|
|
|
};
|
2005-03-03 09:19:58 -08:00
|
|
|
}
|