summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorFoo Chuan Wei <chuanwei.foo@hotmail.com>2021-10-13 14:42:41 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-10-13 16:54:56 +0200
commit393315a98ef0b1cbafb661be5c36bbd4f30dba2e (patch)
treeaff3e6e279d4fc607740b5488000d3ce433ac826 /gnu
parentac60f71215dbb327d3581b2a31b88de5a87abd06 (diff)
gnu: Add cscope
* gnu/packages/code.scm (cscope): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/code.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 7551b31e850..155d2c6bde4 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -15,6 +15,7 @@
15;;; Copyright © 2020, 2021 Marius Bakke <marius@gnu.org> 15;;; Copyright © 2020, 2021 Marius Bakke <marius@gnu.org>
16;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> 16;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
17;;; Copyright © 2021 lu hui <luhuins@163.com> 17;;; Copyright © 2021 lu hui <luhuins@163.com>
18;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
18;;; 19;;;
19;;; This file is part of GNU Guix. 20;;; This file is part of GNU Guix.
20;;; 21;;;
@@ -936,3 +937,32 @@ extensions over the standard utility.")
936 (description "amalgamate.py aims to make it easy to use SQLite-style C 937 (description "amalgamate.py aims to make it easy to use SQLite-style C
937source and header amalgamation in projects.") 938source and header amalgamation in projects.")
938 (license license:bsd-3)))) 939 (license license:bsd-3))))
940
941(define-public cscope
942 (package
943 (name "cscope")
944 (version "15.9")
945 (source
946 (origin
947 (method url-fetch)
948 (uri (string-append "mirror://sourceforge/cscope/cscope/"
949 "v" version "/cscope-" version ".tar.gz"))
950 (sha256
951 (base32 "0ngiv4aj3rr35k3q3wjx0y19gh7i1ydqa0cqip6sjwd8fph5ll65"))))
952 (build-system gnu-build-system)
953 (inputs `(("ncurses" ,ncurses)))
954 (arguments
955 `(#:configure-flags
956 ;; Specify the correct ncurses directory to prevent incorrect fallback
957 ;; on SysV curses.
958 (list (string-append "--with-ncurses="
959 (assoc-ref %build-inputs "ncurses")))))
960 (home-page "http://cscope.sourceforge.net")
961 (synopsis "Tool for browsing source code")
962 (description
963 "Cscope is a text screen based source browsing tool. Although it is
964primarily designed to search C code (including lex and yacc files), it can
965also be used for C++ code.
966
967Using cscope, you can easily search for where symbols are used and defined.")
968 (license license:bsd-3)))