summaryrefslogtreecommitdiff
path: root/gnu/packages/code.scm
diff options
context:
space:
mode:
authorDanylo Kondratiev <danylo@posteo.ie>2026-05-08 22:49:13 +0300
committerLudovic Courtès <ludo@gnu.org>2026-05-16 00:42:25 +0200
commit6e1bcc31470854a958e60c78972bcc8ad12033ed (patch)
treee3e084b3f95d8d6db459a2060651937cafdfd581 /gnu/packages/code.scm
parent55f59e17b10903485506c26779c8ec09f2e3268e (diff)
gnu: idutils: Improve style and move package.
* gnu/packages/idutils.scm (idutils): Run guix style. [native-inputs]: Drop input labels. Move from here ... * gnu/packages/code.scm: ... to here. Change-Id: Ie48e1e2ad67d484dbde9d8f5f37cf5bfb6df4a7f Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r--gnu/packages/code.scm44
1 files changed, 42 insertions, 2 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 17cf3287ae9..f8842c6ae7e 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -1,8 +1,8 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2015, 2018, 2020, 2021, 2023 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012-2013, 2015, 2018, 2020, 2021, 2023, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> 3;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
4;;; Copyright © 2015, 2018 Ricardo Wurmus <rekado@elephly.net> 4;;; Copyright © 2015, 2018 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2016, 2017, 2019-2024 Efraim Flashner <efraim@flashner.co.il> 5;;; Copyright © 2016, 2017, 2018, 2019-2024 Efraim Flashner <efraim@flashner.co.il>
6;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> 6;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
7;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org> 7;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
8;;; Copyright © 2017 Andy Wingo <wingo@igalia.com> 8;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
@@ -866,6 +866,46 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
866the C, C++, C++/CLI, Objective‑C, C#, and Java programming languages.") 866the C, C++, C++/CLI, Objective‑C, C#, and Java programming languages.")
867 (license license:lgpl3+))) 867 (license license:lgpl3+)))
868 868
869(define-public idutils
870 (package
871 (name "idutils")
872 (version "4.6")
873 (source
874 (origin
875 (method url-fetch)
876 (uri (string-append "mirror://gnu/idutils/idutils-" version ".tar.xz"))
877 (sha256
878 (base32 "1hmai3422iaqnp34kkzxdnywl7n7pvlxp11vrw66ybxn9wxg90c1"))
879 (modules '((guix build utils)))
880 (snippet
881 '(begin
882 (substitute* (find-files "lib" "\\.c$")
883 (("#if defined _IO_ftrylockfile")
884 "#if defined _IO_EOF_SEEN"))
885 (substitute* "lib/stdio-impl.h"
886 (("^/\\* BSD stdio derived implementations")
887 (string-append
888 "#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN" "\n"
889 "# define _IO_IN_BACKUP 0x100\n" "#endif\n\n"
890 "/* BSD stdio derived implementations")))
891
892 ;; 'gets' is deprecated in glibc 2.33 and its declaration is
893 ;; no longer visible by default from <stdio.h>.
894 (substitute* "lib/stdio.in.h"
895 (("_GL_WARN_ON_USE \\(gets.*")
896 ""))))))
897 (build-system gnu-build-system)
898 (native-inputs (list emacs-minimal))
899 (home-page "https://www.gnu.org/software/idutils/")
900 (synopsis "Identifier database utilities")
901 (description
902 "The GNU idutils package includes tools to create an index of textual
903tokens used in a list of file names and then to query that index. Thus, it
904allows the user to, for example, find all the uses of a particular function
905in a large programming project. In addition to handling textual tokens, it
906can also handle numeric constants and the contents of character strings.")
907 (license license:gpl3+)))
908
869(define-public indent 909(define-public indent
870 ;; XXX: Not released anymore, but some patches fix CVEs. 910 ;; XXX: Not released anymore, but some patches fix CVEs.
871 (let ((commit "1737c929cbe2ec8a181107df9742894a44c57f71") 911 (let ((commit "1737c929cbe2ec8a181107df9742894a44c57f71")