my-guix/wip/emojicode.scm

92 lines
3.6 KiB
Scheme
Raw Normal View History

2020-06-16 15:05:48 +02:00
;;; Copyright © 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
2018-09-05 09:14:18 +02:00
;;;
;;; This file is an addendum to GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
2018-09-12 09:06:58 +02:00
(define-module (wip emojicode)
2018-09-05 09:14:18 +02:00
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix build-system cmake)
2020-06-16 15:05:48 +02:00
#:use-module (gnu packages compression)
2019-07-22 07:51:01 +02:00
#:use-module (gnu packages llvm)
2020-06-16 15:05:48 +02:00
#:use-module (gnu packages ninja)
2018-09-05 09:14:18 +02:00
#:use-module (gnu packages python))
(define-public emojicode
(package
(name "emojicode")
2020-06-16 15:05:48 +02:00
(version "1.0-beta.2")
2018-09-05 09:14:18 +02:00
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emojicode/emojicode")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
2020-06-16 15:05:48 +02:00
"03jbaawmgpbii599hnzj3xrpn7aksmwjdbh4dig93iq4wxh2qahg"))))
2018-09-05 09:14:18 +02:00
(build-system cmake-build-system)
(arguments
`(#:test-target "tests"
2021-04-02 17:53:44 +02:00
;#:build-type "Release"
2019-07-22 07:51:01 +02:00
;#:configure-flags '((string-append "-DdefaultPackagesDirectory=" ...something
2020-06-16 15:05:48 +02:00
#:configure-flags '("-GNinja")
2018-09-05 09:14:18 +02:00
#:phases
(modify-phases %standard-phases
2020-06-16 15:05:48 +02:00
(replace 'build
(lambda _
(invoke "ninja" "-j" (number->string (parallel-job-count)))))
(replace 'check
(lambda* (#:key tests? test-target #:allow-other-keys)
(if tests?
(invoke "ninja" test-target "-j" (number->string (parallel-job-count)))
(format #t "No tests run\n"))))
2018-09-05 09:14:18 +02:00
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
2019-07-22 07:51:01 +02:00
(invoke "ninja" "magicinstall")
;(install-file "emojicode" bin)
;(install-file "emojicodec" bin)
;(copy-recursively
; (string-append "Emojicode-" ,version "-Linux-"
; (car (string-split ,(%current-system) #\-))
; "/packages")
; (string-append out "/lib/emojicode/"))
)
2018-09-05 09:14:18 +02:00
#t)))))
(native-inputs
2021-04-02 17:53:44 +02:00
`(;("llvm" ,llvm-8)
("clang-toolchain" ,clang-toolchain-8)
2020-06-16 15:05:48 +02:00
("ncurses" ,(@ (gnu packages ncurses) ncurses)) ; needed?
("ninja" ,ninja)
("python" ,python)
2021-04-02 17:53:44 +02:00
("zlib" ,zlib)
("zlib" ,zlib "static")))
2020-06-16 15:05:48 +02:00
;(native-search-paths
; (list (search-path-specification
; (variable "EMOJICODE_PACKAGES_PATH")
; (separator #f) ;single entry
; (files '("lib/emojicode")))))
2018-09-05 09:14:18 +02:00
(home-page "https://www.emojicode.org/")
(synopsis "World's only programming language that's bursting with emojis")
(description
2020-06-16 15:05:48 +02:00
"Emojicode is a high-level, multi-paradigm programming language consisting
of emojis. It features Object-Orientation, Optionals, Generics and Closures.")
2018-09-05 09:14:18 +02:00
(license license:artistic2.0)))