summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-12-28 11:28:42 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-12-28 11:28:42 +0000
commit0004682e366356f9072d7e45447611e67b65e20c (patch)
tree8147c8cee356ddc796241ae13f470f257fa0a408 /pkgs/desktops
parenta9d066a990928b00f3e3578c0d324e465f05f1cd (diff)
downloadnixlib-0004682e366356f9072d7e45447611e67b65e20c.tar
nixlib-0004682e366356f9072d7e45447611e67b65e20c.tar.gz
nixlib-0004682e366356f9072d7e45447611e67b65e20c.tar.bz2
nixlib-0004682e366356f9072d7e45447611e67b65e20c.tar.lz
nixlib-0004682e366356f9072d7e45447611e67b65e20c.tar.xz
nixlib-0004682e366356f9072d7e45447611e67b65e20c.tar.zst
nixlib-0004682e366356f9072d7e45447611e67b65e20c.zip
gtksourceview: run checks on Linux only
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/gnome-3/core/gtksourceview/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/desktops/gnome-3/core/gtksourceview/default.nix b/pkgs/desktops/gnome-3/core/gtksourceview/default.nix
index 363cf1a0c4ac..e3b92a4aeacc 100644
--- a/pkgs/desktops/gnome-3/core/gtksourceview/default.nix
+++ b/pkgs/desktops/gnome-3/core/gtksourceview/default.nix
@@ -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 \