diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-12-11 14:03:27 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-12-11 14:03:27 +0000 |
commit | 2ccf2984eb32ef5e3c59befaf47ef1ee8711fe85 (patch) | |
tree | f52e98f37e9fb362c26f8a1c7e82be3e901af591 /pkgs/development/tools/misc/cscope | |
parent | 833832dc9298b97c3c54ad9007b1eada88d5ac22 (diff) |
Updating cscope, and making its dependency on emacs optional (and off by default),
due to something called 'install emacs mode'. svn path=/nixpkgs/trunk/; revision=18901
Diffstat (limited to 'pkgs/development/tools/misc/cscope')
-rw-r--r-- | pkgs/development/tools/misc/cscope/default.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/pkgs/development/tools/misc/cscope/default.nix b/pkgs/development/tools/misc/cscope/default.nix index ed445663aa903..305087d59c870 100644 --- a/pkgs/development/tools/misc/cscope/default.nix +++ b/pkgs/development/tools/misc/cscope/default.nix @@ -1,11 +1,15 @@ -{ fetchurl, stdenv, ncurses, pkgconfig, emacs }: +{ fetchurl, stdenv, ncurses, pkgconfig +, installEmacsMode ? false, emacs ? null +}: + +assert installEmacsMode -> emacs != null; stdenv.mkDerivation rec { - name = "cscope-15.6"; + name = "cscope-15.7a"; src = fetchurl { - url = "mirror://sourceforge/cscope/${name}.tar.gz"; - sha256 = "1jn5r9xhys7dlhxxiwffx9wrxlaf9i9ffh6dw516w79a83pn2r3d"; + url = "mirror://sourceforge/cscope/${name}.tar.bz2"; + sha256 = "0dv0r66x31y2xxvad54x0wal8yb1krwbx3gjc82qpg4hlz5qnqq2"; }; preConfigure = '' @@ -17,9 +21,9 @@ stdenv.mkDerivation rec { configureFlags = "--with-ncurses=${ncurses}"; - buildInputs = [ ncurses pkgconfig emacs ]; + buildInputs = [ ncurses pkgconfig ] ++ stdenv.lib.optional installEmacsMode emacs; - postInstall = '' + postInstall = if installEmacsMode then '' # Install Emacs mode. cd "contrib/xcscope" @@ -29,7 +33,7 @@ stdenv.mkDerivation rec { ensureDir "$out/share/emacs/site-lisp" emacs --batch --eval '(byte-compile-file "xcscope.el")' cp xcscope.el{,c} "$out/share/emacs/site-lisp" - ''; + '' else ""; meta = { description = "Cscope, a developer's tool for browsing source code"; |