gtksourceview: run checks on Linux only

This commit is contained in:
Vincent Laporte 2017-12-28 11:28:42 +00:00
parent a9d066a990
commit 0004682e36
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig intltool gettext perl ]
++ stdenv.lib.optionals doCheck checkInputs;
++ checkInputs;
buildInputs = [ atk cairo glib pango libxml2 ];
checkInputs = [ xvfb_run dbus ];
checkInputs = stdenv.lib.optionals doCheck [ xvfb_run dbus ];
preBuild = ''
substituteInPlace gtksourceview/gtksourceview-utils.c --replace "@NIX_SHARE_PATH@" "$out/share"
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
patches = [ ./nix_share_path.patch ];
doCheck = true;
doCheck = stdenv.isLinux;
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \