From 90cdaa74e92bd2abe90f00641f0003e94cb02703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 16 Sep 2009 14:53:27 +0000 Subject: [PATCH] GNU Cflow: Don't depend on Emacs on Cyg/Dar. svn path=/nixpkgs/trunk/; revision=17201 --- pkgs/development/tools/misc/cflow/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/cflow/default.nix b/pkgs/development/tools/misc/cflow/default.nix index 46a85a68fe0..42d189387f2 100644 --- a/pkgs/development/tools/misc/cflow/default.nix +++ b/pkgs/development/tools/misc/cflow/default.nix @@ -14,7 +14,13 @@ stdenv.mkDerivation rec { "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/bin/cpp" ''; - buildInputs = [ gettext emacs ]; + buildInputs = [ gettext ] ++ + + # We don't have Emacs/GTK/etc. on {Dar,Cyg}win. + stdenv.lib.optional + (! (stdenv.lib.lists.any (x: stdenv.system == x) + [ "i686-darwin" "i686-cygwin" ])) + emacs; doCheck = true;