From e97ad11560acb6838be4fd4dccec5e1157320ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 11 Aug 2010 20:07:22 +0000 Subject: [PATCH] Making cscope cross build (avoiding emacs in it) svn path=/nixpkgs/branches/stdenv-updates/; revision=23127 --- pkgs/development/tools/misc/cscope/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/cscope/default.nix b/pkgs/development/tools/misc/cscope/default.nix index 1c6d1dacc7f..2a9e77bd05b 100644 --- a/pkgs/development/tools/misc/cscope/default.nix +++ b/pkgs/development/tools/misc/cscope/default.nix @@ -17,7 +17,8 @@ stdenv.mkDerivation rec { configureFlags = "--with-ncurses=${ncurses}"; - buildInputs = [ ncurses pkgconfig emacs ]; + buildInputs = [ ncurses emacs ]; + buildNativeInputs = [ pkgconfig ]; postInstall = '' # Install Emacs mode. @@ -31,6 +32,11 @@ stdenv.mkDerivation rec { cp xcscope.el{,c} "$out/share/emacs/site-lisp" ''; + crossAttrs = { + postInstall = ""; + propagatedBuildInputs = [ ncurses.hostDrv ]; + }; + meta = { description = "Cscope, a developer's tool for browsing source code";