aboutsummaryrefslogtreecommitdiff
path: root/doc/environment-gdb.scm
blob: 0534e594de914ff0a7282ff4eebfbeec29040637 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(use-modules (guix)
             (gnu packages gdb)
             (gnu packages autotools)
             (gnu packages texinfo))

;; Augment the package definition of GDB with the build tools
;; needed when developing GDB (and which are not needed when
;; simply installing it.)
(package
  (inherit gdb)
  (native-inputs (modify-inputs (package-native-inputs gdb)
                   (prepend autoconf-2.64 automake texinfo))))
ges base)) (define-public dummy (package (inherit hello) (name "dummy") (version "42") (synopsis "dummy package") (description "dummy package. Only used for testing purposes."))) EOF cat > "$tmpfile"<<EOF (use-modules (guix packages) (foo)) (format #t "~a\n" (package-version dummy)) EOF test "`guix repl "$tmpfile" -L "$module_dir"`" = "42" cat > "$tmpfile"<<EOF (format #t "~a\n" (cdr (command-line))) EOF test "`guix repl -- "$tmpfile" -a b --input=foo.txt`" = "(-a b --input=foo.txt)" cat > "$tmpfile"<<EOF #!$(type -P env) -S guix repl -- !# (format #t "~a\n" (cdr (command-line))) EOF chmod 755 $tmpfile test "`"$tmpfile" -a b --input=foo.txt`" = "(-a b --input=foo.txt)"