9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, fetchpatch
|
|
, pkg-config
|
|
, mono
|
|
, glib
|
|
, pango
|
|
, gtk3
|
|
, GConf ? null
|
|
, libglade ? null
|
|
, libgtkhtml ? null
|
|
, gtkhtml ? null
|
|
, libgnomecanvas ? null
|
|
, libgnomeui ? null
|
|
, libgnomeprint ? null
|
|
, libgnomeprintui ? null
|
|
, libxml2
|
|
, monoDLLFixer
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gtk-sharp";
|
|
version = "2.99.3";
|
|
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "18n3l9zcldyvn4lwi8izd62307mkhz873039nl6awrv285qzah34";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
mono glib pango gtk3 GConf libglade libgnomecanvas
|
|
libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2
|
|
];
|
|
|
|
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";
|
|
})
|
|
];
|
|
|
|
dontStrip = true;
|
|
|
|
inherit monoDLLFixer;
|
|
|
|
passthru = {
|
|
inherit gtk3;
|
|
};
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|