2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, mono
|
|
|
|
, glib
|
|
|
|
, pango
|
|
|
|
, gtk2
|
|
|
|
, libxml2
|
|
|
|
, monoDLLFixer
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, which
|
2021-05-20 23:08:51 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtk-sharp";
|
|
|
|
version = "2.12.45";
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mono";
|
|
|
|
repo = "gtk-sharp";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vy6yfwkfv6bb45bzf4g6dayiqkvqqvlr02rsnhd10793hlpqlgg";
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
pushd $out/bin
|
|
|
|
for f in gapi2-*
|
|
|
|
do
|
|
|
|
substituteInPlace $f --replace mono ${mono}/bin/mono
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake libtool which ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
mono glib pango gtk2
|
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap-${lib.versions.majorMinor version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
inherit monoDLLFixer;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
gtk = gtk2;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Graphical User Interface Toolkit for mono and .Net";
|
|
|
|
homepage = "https://www.mono-project.com/docs/gui/gtksharp";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|