unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58971] [PATCH] gnu: Add avr-gdb.
@ 2022-11-02 19:49 Kristian Lein-Mathisen
  2022-11-03 17:31 ` Christopher Baines
  0 siblings, 1 reply; 5+ messages in thread
From: Kristian Lein-Mathisen @ 2022-11-02 19:49 UTC (permalink / raw)
  To: 58971


[-- Attachment #1.1: Type: text/plain, Size: 244 bytes --]

I'd like to have avr-gdb available in GNU Guix.
I've used the Arch Linux PKGFILE as basis:

https://github.com/archlinux/svntogit-community/blob/fa92f7b2008ec/trunk/PKGBUILD

I'm hoping this'll be considered for inclusion upstream.

Thanks,
K.

[-- Attachment #1.2: Type: text/html, Size: 500 bytes --]

[-- Attachment #2: 0001-gnu-Add-avr-gdb.patch --]
[-- Type: text/x-patch, Size: 1088 bytes --]

From daa7559c6c1fb23ab11bdbeb2d81f751a5cc2400 Mon Sep 17 00:00:00 2001
From: Kristian Lein-Mathisen <kristianlein@gmail.com>
Date: Wed, 2 Nov 2022 20:36:51 +0100
Subject: [PATCH] gnu: Add avr-gdb.

* gnu/packages/gdb.scm (avr-gdb): New variable.
---
 gnu/packages/gdb.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index 7d8416c7c5..e09f7cf41a 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -171,3 +171,15 @@ (define-public gdb-minimal
     (name "gdb-minimal")
     (inputs (fold alist-delete (package-inputs gdb)
                   '("libxml2" "ncurses" "python-wrapper" "source-highlight")))))
+
+(define-public avr-gdb
+  (package/inherit gdb-12
+    (name "avr-gdb")
+    (arguments
+     `(#:configure-flags
+       (list "--target=avr"
+             "--disable-nls"
+             "--enable-languages=c,c++"
+             "--with-system-readline"
+             "--enable-source-highlight")
+       ,@(package-arguments gdb-12)))))

base-commit: 807bfe55dc382b88ab0fdade6886dfa2b15487ee
-- 
2.38.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-07 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02 19:49 [bug#58971] [PATCH] gnu: Add avr-gdb Kristian Lein-Mathisen
2022-11-03 17:31 ` Christopher Baines
2022-11-03 18:24   ` Kristian Lein-Mathisen
2022-11-05  2:21     ` Thiago Jung Bauermann via Guix-patches via
2022-11-07 19:59     ` Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).