2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-07-18 16:06:22 +00:00
|
|
|
, mono
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, pango
|
|
|
|
, gtk3
|
|
|
|
, libxml2
|
|
|
|
, monoDLLFixer
|
|
|
|
}:
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtk-sharp";
|
|
|
|
version = "2.99.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "18n3l9zcldyvn4lwi8izd62307mkhz873039nl6awrv285qzah34";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
mono glib pango gtk3
|
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00: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";
|
|
|
|
})
|
2021-05-20 23:08:51 +00:00
|
|
|
# @see https://github.com/mono/gtk-sharp/pull/263
|
|
|
|
(fetchpatch {
|
|
|
|
name = "disambiguate_Gtk.Range.patch";
|
|
|
|
url = "https://github.com/mono/gtk-sharp/commit/a00552ad68ae349e89e440dca21b86dbd6bccd30.patch";
|
|
|
|
sha256 = "1ylplr9g9x7ybsgrydsgr6p3g7w6i46yng1hnl3afgn4vj45rag2";
|
|
|
|
})
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
inherit monoDLLFixer;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit gtk3;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|