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 22:24:51 +01:00
|
|
|
, gtk2
|
2005-06-17 21:00:12 +01: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 13:41:18 +01: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 20:24:37 +01: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 22:07:09 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
2005-03-03 17:19:58 +00:00
|
|
|
inherit monoDLLFixer;
|
2010-06-22 22:07:09 +01:00
|
|
|
|
|
|
|
passthru = {
|
2016-09-11 22:24:51 +01:00
|
|
|
gtk = gtk2;
|
2010-06-22 22:07:09 +01:00
|
|
|
};
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2018-10-12 21:36:57 +01: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 17:06:29 +01:00
|
|
|
};
|
2005-03-03 17:19:58 +00:00
|
|
|
}
|