gtk-sharp: 2.12.10 -> 2.12.45

This commit is contained in:
obadz 2018-12-24 23:57:04 +00:00
parent 1a40a8e000
commit cd46319bdc

View File

@ -1,4 +1,8 @@
{ stdenv, fetchurl, pkgconfig, mono { stdenv
, lib
, fetchFromGitHub
, pkgconfig
, mono
, glib , glib
, pango , pango
, gtk2 , gtk2
@ -12,26 +16,24 @@
, libgnomeprintui ? null , libgnomeprintui ? null
, libxml2 , libxml2
, monoDLLFixer , monoDLLFixer
, autoconf
, automake
, libtool
, which
}: }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "gtk-sharp-2.12.10"; name = "gtk-sharp-${version}";
version = "2.12.45";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchFromGitHub {
url = mirror://gnome/sources/gtk-sharp/2.12/gtk-sharp-2.12.10.tar.gz; owner = "mono";
sha256 = "1y55vc2cp4lggmbil2lb28d0gn71iq6wfyja1l9mya5xll8svzwc"; repo = "gtk-sharp";
rev = version;
sha256 = "1vy6yfwkfv6bb45bzf4g6dayiqkvqqvlr02rsnhd10793hlpqlgg";
}; };
# patches = [ ./dllmap-glue.patch ];
# patch bad usage of glib, which wasn't tolerated anymore
prePatch = ''
for f in glib/glue/{thread,list,slist}.c; do
sed -i 's,#include <glib/.*\.h>,#include <glib.h>,g' "$f"
done
'';
postInstall = '' postInstall = ''
pushd $out/bin pushd $out/bin
for f in gapi2-* for f in gapi2-*
@ -41,13 +43,17 @@ stdenv.mkDerivation {
popd popd
''; '';
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig autoconf automake libtool which ];
buildInputs = [ buildInputs = [
mono glib pango gtk2 GConf libglade libgnomecanvas mono glib pango gtk2 GConf libglade libgnomecanvas
libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2 libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2
]; ];
preConfigure = ''
./bootstrap-${lib.versions.majorMinor version}
'';
dontStrip = true; dontStrip = true;
inherit monoDLLFixer; inherit monoDLLFixer;