1 { lib, stdenv, fetchurl, pkg-config, atk, cairo, glib, gtk3, pango, vala
2 , libxml2, perl, intltool, gettext, gobject-introspection, dbus, xvfb_run, shared-mime-info }:
4 stdenv.mkDerivation rec {
5 pname = "gtksourceview";
9 url = "mirror://gnome/sources/gtksourceview/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
10 sha256 = "1zbpj283b5ycz767hqz5kdq02wzsga65pp4fykvhg8xj6x50f6v9";
13 propagatedBuildInputs = [
14 # Required by gtksourceview-3.0.pc
16 # Used by gtk_source_language_manager_guess_language
20 outputs = [ "out" "dev" ];
22 nativeBuildInputs = [ pkg-config intltool perl gobject-introspection vala ];
24 checkInputs = [ xvfb_run dbus ];
26 buildInputs = [ atk cairo glib pango libxml2 gettext ];
29 substituteInPlace gtksourceview/gtksourceview-utils.c --replace "@NIX_SHARE_PATH@" "$out/share"
32 patches = [ ./3.x-nix_share_path.patch ];
34 enableParallelBuilding = true;
36 doCheck = stdenv.isLinux;
39 XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
40 xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
41 --config-file=${dbus.daemon}/share/dbus-1/session.conf \
46 homepage = "https://wiki.gnome.org/Projects/GtkSourceView";
47 platforms = with platforms; linux ++ darwin;
48 license = licenses.lgpl21;
49 maintainers = teams.gnome.members;