2018-12-24 23:57:04 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2018-12-24 23:57:04 +00:00
|
|
|
, mono
|
2005-02-26 23:45:19 +00:00
|
|
|
, glib
|
|
|
|
, pango
|
2016-09-11 21:24:51 +00:00
|
|
|
, gtk2
|
2005-03-03 17:19:58 +00:00
|
|
|
, libxml2
|
|
|
|
, monoDLLFixer
|
2018-12-24 23:57:04 +00:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, which
|
2021-05-18 14:26:25 +00:00
|
|
|
, fetchpatch
|
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
|
|
|
};
|
|
|
|
|
2021-05-18 14:26:25 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://projects.archlinux.de/svntogit/packages.git/plain/trunk/gtk-sharp2-2.12.12-gtkrange.patch?h=packages/gtk-sharp-2";
|
|
|
|
sha256 = "bjx+OfgWnN8SO82p8G7pbGuxJ9EeQxMLeHnrtEm8RV8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake libtool which ];
|
2018-12-24 23:31:40 +00:00
|
|
|
|
2005-02-26 23:45:19 +00:00
|
|
|
buildInputs = [
|
2022-01-15 23:43:13 +00:00
|
|
|
mono glib pango gtk2
|
|
|
|
libxml2
|
2005-02-26 23:45:19 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-10-12 20:36:57 +00:00
|
|
|
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
|
|
|
}
|