;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
;;;
;;; This file is part of GNU Guix.
;;;
(define-public nim
(package
(name "nim")
- (version "0.17.0")
+ (version "1.0.6")
(source
(origin
(method url-fetch)
name "-" version ".tar.xz"))
(sha256
(base32
- "16vsmk4rqnkg9lc9h9jk62ps0x778cdqg6qrs3k6fv2g73cqvq9n"))))
+ "1cv6bxc7w21455c0pv0r2h64ljyzw266jsk1fsgiiyk2rx8mfkhk"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; No tests.
#:phases
(modify-phases %standard-phases
- (delete 'configure)
+ (delete 'configure) ; no configure script
(add-after 'unpack 'patch-installer
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
#t)))
(add-after 'patch-source-shebangs 'patch-more-shebangs
(lambda _
- (substitute* (append '("tests/stdlib/tosprocterminate.nim"
- "lib/pure/osproc.nim")
- (find-files "c_code" "stdlib_osproc.c"))
- (("/bin/sh") (which "sh")))
+ (let ((sh (which "sh")))
+ (substitute* '("tests/stdlib/tosprocterminate.nim"
+ "lib/pure/osproc.nim")
+ (("/bin/sh") sh))
+ (substitute* (find-files "c_code" "stdlib_osproc.c")
+ (("\"/bin/sh\", 7") (format #f "~s, ~s" sh (string-length sh)))))
#t))
(replace 'build
(lambda _
- (zero? (system* "sh" "build.sh"))))
+ (invoke "sh" "build.sh")
+ #t))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- (zero? (system* "./install.sh" out))))))))
+ (invoke "./install.sh" out)
+ #t))))))
(home-page "https://nim-lang.org")
(synopsis "Statically-typed, imperative programming language")
(description "Nim (formerly known as Nimrod) is a statically-typed,