guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Add cc65.


From: guix-commits
Subject: 02/02: gnu: Add cc65.
Date: Sun, 11 Jul 2021 20:30:39 -0400 (EDT)

dannym pushed a commit to branch master
in repository guix.

commit 0e86d6ffed9b1f260a90c95f9ad75fd2c6288921
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Mon Jul 12 01:31:59 2021 +0200

    gnu: Add cc65.
    
    * gnu/packages/emulators.scm (cc65): New variable.
---
 gnu/packages/emulators.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index ac6bdf8..838ecb5 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -2536,3 +2536,39 @@ on a Commodore C64, C128 etc.")
     ;; Some files are LGPL 2.1--but we aren't building from or installing 
those.
     ;; zlib license with an (non-)advertising clause.
     (license license:zlib)))
+
+(define-public cc65
+  (package
+    (name "cc65")
+    (version "2.19")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/cc65/cc65.git";)
+                     (commit (string-append "V" version))))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "01a15yvs455qp20hri2pbg2wqvcip0d50kb7dibi9427hqk9cnj4"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f  ; No target exists.
+       #:make-flags
+       (list "BUILD_ID=V2.18 - Git 55528249"
+             (string-append "PREFIX=" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key source #:allow-other-keys)
+             ;; We include $SOURCE/include in C_INCLUDE_PATH.  Remove it.
+             (setenv "C_INCLUDE_PATH"
+               (string-join
+                (filter (lambda (name)
+                          (not (string=? name (string-append source 
"/include"))))
+                        (string-split (getenv "C_INCLUDE_PATH") #\:))
+                ":"))
+             #t)))))
+    (synopsis "Development environment for 6502 systems")
+    (description "This package provides a development environment for 6502 
systems, including macro assembler, C compiler, linker, librarian and several 
other tools.")
+    (home-page "https://cc65.github.io/";)
+    (license license:zlib)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]