Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / gtk-sharp / 3.0.nix
blob8b594a00a7e56badcec4277ae6f34634965ccaf3
1 { lib, stdenv
2 , fetchurl
3 , fetchpatch
4 , pkg-config
5 , mono
6 , glib
7 , pango
8 , gtk3
9 , libxml2
10 , monoDLLFixer
13 stdenv.mkDerivation rec {
14   pname = "gtk-sharp";
15   version = "2.99.3";
17   builder = ./builder.sh;
18   src = fetchurl {
19     url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
20     sha256 = "18n3l9zcldyvn4lwi8izd62307mkhz873039nl6awrv285qzah34";
21   };
23   nativeBuildInputs = [ pkg-config ];
24   buildInputs = [
25     mono glib pango gtk3
26     libxml2
27   ];
29   patches = [
30     # Fixes MONO_PROFILE_ENTER_LEAVE undeclared when compiling against newer versions of mono.
31     # @see https://github.com/mono/gtk-sharp/pull/266
32     (fetchpatch {
33       name = "MONO_PROFILE_ENTER_LEAVE.patch";
34       url = "https://github.com/mono/gtk-sharp/commit/401df51bc461de93c1a78b6a7a0d5adc63cf186c.patch";
35       sha256 = "0hrkcr5a7wkixnyp60v4d6j3arsb63h54rd30lc5ajfjb3p92kcf";
36     })
37     # @see https://github.com/mono/gtk-sharp/pull/263
38     (fetchpatch {
39       name = "disambiguate_Gtk.Range.patch";
40       url = "https://github.com/mono/gtk-sharp/commit/a00552ad68ae349e89e440dca21b86dbd6bccd30.patch";
41       sha256 = "1ylplr9g9x7ybsgrydsgr6p3g7w6i46yng1hnl3afgn4vj45rag2";
42     })
43   ];
45   dontStrip = true;
47   inherit monoDLLFixer;
49   passthru = {
50     inherit gtk3;
51   };
53   meta = {
54     platforms = lib.platforms.linux;
55   };