Skip to content

Commit

Permalink
gtksourceview: run checks on Linux only
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Dec 28, 2017
1 parent a9d066a commit 0004682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/desktops/gnome-3/core/gtksourceview/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ 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"
'';

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 \
Expand Down

0 comments on commit 0004682

Please sign in to comment.