2016-09-18 19:35:23 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, atk, cairo, glib, gtk3, pango
|
2017-12-13 06:06:21 +00:00
|
|
|
, libxml2, perl, intltool, gettext, gnome3, dbus, xvfb_run, shared_mime_info }:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
2017-12-13 06:06:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# Required by gtksourceview-3.0.pc
|
|
|
|
gtk3
|
|
|
|
# Used by gtk_source_language_manager_guess_language
|
|
|
|
shared_mime_info
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2017-12-13 06:43:55 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-12-13 06:06:21 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool gettext perl ]
|
|
|
|
++ stdenv.lib.optionals doCheck checkInputs;
|
2017-12-13 05:31:28 +00:00
|
|
|
buildInputs = [ atk cairo glib pango libxml2 ];
|
2017-12-13 06:06:21 +00:00
|
|
|
checkInputs = [ xvfb_run dbus ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace gtksourceview/gtksourceview-utils.c --replace "@NIX_SHARE_PATH@" "$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./nix_share_path.patch ];
|
|
|
|
|
2017-12-13 06:06:21 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
make check
|
|
|
|
'';
|
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-04-11 06:17:16 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-09-18 19:35:23 +00:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|