2016-12-24 23:56:49 +00:00
|
|
|
{stdenv, fetchpatch, fetchurl, autoreconfHook, pkgconfig, atk, cairo, glib
|
2019-03-03 21:30:31 +00:00
|
|
|
, gnome-common, gtk2, pango
|
2018-06-01 19:56:40 +01:00
|
|
|
, libxml2Python, perl, intltool, gettext, gtk-mac-integration-gtk2 }:
|
2016-12-24 23:56:49 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2009-09-30 07:29:56 +01:00
|
|
|
|
2016-04-21 11:18:16 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gtksourceview";
|
2016-04-21 11:18:16 +01:00
|
|
|
version = "2.10.5";
|
|
|
|
|
2009-09-30 07:29:56 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/gtksourceview/2.10/${pname}-${version}.tar.bz2";
|
2016-04-21 11:18:16 +01:00
|
|
|
sha256 = "c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e";
|
2009-09-30 07:29:56 +01:00
|
|
|
};
|
2016-12-24 23:56:49 +00:00
|
|
|
|
|
|
|
patches = optionals stdenv.isDarwin [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "change-igemacintegration-to-gtkosxapplication.patch";
|
2018-05-29 09:11:02 +01:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/gtksourceview/commit/e88357c5f210a8796104505c090fb6a04c213902.patch";
|
2016-12-24 23:56:49 +00:00
|
|
|
sha256 = "0h5q79q9dqbg46zcyay71xn1pm4aji925gjd5j93v4wqn41wj5m7";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "update-to-gtk-mac-integration-2.0-api.patch";
|
2018-05-29 09:11:02 +01:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/gtksourceview/commit/ab46e552e1d0dae73f72adac8d578e40bdadaf95.patch";
|
2016-12-24 23:56:49 +00:00
|
|
|
sha256 = "0qzrbv4hpa0v8qbmpi2vp575n13lkrvp3cgllwrd2pslw1v9q3aj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-12-24 23:56:49 +00:00
|
|
|
buildInputs = [
|
2019-03-03 21:30:31 +00:00
|
|
|
atk cairo glib gtk2
|
2016-12-24 23:56:49 +00:00
|
|
|
pango libxml2Python perl intltool
|
|
|
|
gettext
|
|
|
|
] ++ optionals stdenv.isDarwin [
|
2018-06-01 19:56:40 +01:00
|
|
|
autoreconfHook gnome-common gtk-mac-integration-gtk2
|
2016-12-24 23:56:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = optionalString stdenv.isDarwin ''
|
|
|
|
intltoolize --force
|
|
|
|
'';
|
2018-03-25 17:50:06 +01:00
|
|
|
|
2018-04-25 04:20:18 +01:00
|
|
|
doCheck = false; # requires X11 daemon
|
2009-09-30 07:29:56 +01:00
|
|
|
}
|