Making cscope cross build (avoiding emacs in it)

svn path=/nixpkgs/branches/stdenv-updates/; revision=23127
This commit is contained in:
Lluís Batlle i Rossell 2010-08-11 20:07:22 +00:00
parent f9692a7f40
commit e97ad11560

View File

@ -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";