aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-12-25 21:55:48 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-01-01 13:56:27 +0100
commit150e0a1ec60350fa4af9aa7e060ffc77e2f8e3b5 (patch)
tree680945059627707190b37ac9746700844e3e1e4e /gnu
parenteb88fbafcda08210deed0bbfb825cafe12cfc551 (diff)
downloadguix-150e0a1ec60350fa4af9aa7e060ffc77e2f8e3b5.tar
guix-150e0a1ec60350fa4af9aa7e060ffc77e2f8e3b5.tar.gz
gnu: Add openspin.
* gnu/packages/embedded.scm (openspin): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/embedded.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 7aee5ec9eb..f671552c89 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -543,3 +543,41 @@ Propeller micro-controller development.")
(home-page (package-home-page propeller-gcc))
(license (package-license propeller-gcc))))
+(define-public openspin
+ (package
+ (name "openspin")
+ (version "1.00.78")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/parallaxinc/"
+ "OpenSpin/archive/" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1k2dbz1v604g4r2d9qhckg2m8dnhiya760mbsqfsg4waxal87yb7"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'unpack 'remove-timestamp
+ (lambda _
+ (substitute* "SpinSource/openspin.cpp"
+ ((" Compiled on.*$") "\\n\");"))
+ #t))
+ ;; Makefile does not include "install" target
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((bin (string-append (assoc-ref outputs "out")
+ "/bin")))
+ (mkdir-p bin)
+ (install-file "build/openspin" bin)
+ #t))))))
+ (home-page "https://github.com/parallaxinc/OpenSpin")
+ (synopsis "Spin/PASM compiler for the Parallax Propeller")
+ (description "OpenSpin is a compiler for the Spin/PASM language of the
+Parallax Propeller. It was ported from Chip Gracey's original x86 assembler
+code.")
+ (license license:expat)))
+