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