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