2018-12-25 00:57:04 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, mono
|
2005-02-27 00:45:19 +01:00
|
|
|
, glib
|
|
|
|
, pango
|
2016-09-11 23:24:51 +02:00
|
|
|
, gtk2
|
2005-06-17 22:00:12 +02:00
|
|
|
, GConf ? null
|
2005-02-27 00:45:19 +01:00
|
|
|
, libglade ? null
|
|
|
|
, libgtkhtml ? null
|
|
|
|
, gtkhtml ? null
|
|
|
|
, libgnomecanvas ? null
|
|
|
|
, libgnomeui ? null
|
|
|
|
, libgnomeprint ? null
|
|
|
|
, libgnomeprintui ? null
|
2005-03-03 18:19:58 +01:00
|
|
|
, libxml2
|
|
|
|
, monoDLLFixer
|
2018-12-25 00:57:04 +01:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, which
|
2005-03-03 18:19:58 +01:00
|
|
|
}:
|
2005-02-22 21:54:26 +01:00
|
|
|
|
2018-12-25 00:57:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gtk-sharp";
|
2018-12-25 00:57:04 +01:00
|
|
|
version = "2.12.45";
|
2005-02-22 21:54:26 +01:00
|
|
|
|
2005-03-03 18:19:58 +01:00
|
|
|
builder = ./builder.sh;
|
2018-12-25 00:57:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mono";
|
|
|
|
repo = "gtk-sharp";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vy6yfwkfv6bb45bzf4g6dayiqkvqqvlr02rsnhd10793hlpqlgg";
|
2005-02-22 21:54:26 +01:00
|
|
|
};
|
|
|
|
|
2018-12-25 00:31:40 +01:00
|
|
|
postInstall = ''
|
|
|
|
pushd $out/bin
|
|
|
|
for f in gapi2-*
|
|
|
|
do
|
|
|
|
substituteInPlace $f --replace mono ${mono}/bin/mono
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
2018-12-25 00:57:04 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig autoconf automake libtool which ];
|
2018-12-25 00:31:40 +01:00
|
|
|
|
2005-02-27 00:45:19 +01:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
mono glib pango gtk2 GConf libglade libgnomecanvas
|
2005-02-27 00:45:19 +01:00
|
|
|
libgtkhtml libgnomeui libgnomeprint libgnomeprintui gtkhtml libxml2
|
|
|
|
];
|
|
|
|
|
2018-12-25 00:57:04 +01:00
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap-${lib.versions.majorMinor version}
|
|
|
|
'';
|
|
|
|
|
2010-06-22 23:07:09 +02:00
|
|
|
dontStrip = true;
|
|
|
|
|
2005-03-03 18:19:58 +01:00
|
|
|
inherit monoDLLFixer;
|
2010-06-22 23:07:09 +02:00
|
|
|
|
|
|
|
passthru = {
|
2016-09-11 23:24:51 +02:00
|
|
|
gtk = gtk2;
|
2010-06-22 23:07:09 +02:00
|
|
|
};
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2018-10-12 22:36:57 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical User Interface Toolkit for mono and .Net";
|
|
|
|
homepage = https://www.mono-project.com/docs/gui/gtksharp;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2005-03-03 18:19:58 +01:00
|
|
|
}
|