| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages nickle)
|
| 22 | #:use-module (gnu packages)
|
| 23 | #:use-module (gnu packages algebra)
|
| 24 | #:use-module (gnu packages bison)
|
| 25 | #:use-module (gnu packages compiler-tools)
|
| 26 | #:use-module (gnu packages pkg-config)
|
| 27 | #:use-module (gnu packages readline)
|
| 28 | #:use-module (gnu packages ruby-xyz)
|
| 29 | #:use-module (guix build-system meson)
|
| 30 | #:use-module (guix download)
|
| 31 | #:use-module (guix gexp)
|
| 32 | #:use-module ((guix licenses) #:prefix license:)
|
| 33 | #:use-module (guix packages))
|
| 34 |
|
| 35 | (define-public nickle
|
| 36 | (package
|
| 37 | (name "nickle")
|
| 38 | (version "2.107")
|
| 39 | (source (origin
|
| 40 | (method url-fetch)
|
| 41 | (uri (string-append "https://nickle.org/release/nickle-"
|
| 42 | version ".tar.xz"))
|
| 43 | (sha256
|
| 44 | (base32
|
| 45 | "1wli8p5fv2ldy51ycc8pcx8rl3ph2wbyiqs21qpjadlvildaaqj0"))))
|
| 46 | (build-system meson-build-system)
|
| 47 | (arguments
|
| 48 | (list #:phases #~(modify-phases %standard-phases
|
| 49 | (add-before 'configure 'disable-benchmarks
|
| 50 | |
| 51 | |
| 52 | |
| 53 | (lambda _
|
| 54 | (substitute* "meson.build"
|
| 55 | (("^subdir\\('bench'\\)" &)
|
| 56 | (string-append "# " &))))))))
|
| 57 | (native-inputs (list bc bison flex pkg-config ruby-asciidoctor-pdf))
|
| 58 | (inputs (list readline))
|
| 59 | (synopsis "Numeric oriented programming language")
|
| 60 | (description
|
| 61 | "Nickle is a programming language based prototyping environment with
|
| 62 | powerful programming and scripting capabilities. Nickle supports a variety of
|
| 63 | datatypes, especially arbitrary precision numbers. The programming language
|
| 64 | vaguely resembles C. Some things in C which do not translate easily are
|
| 65 | different, some design choices have been made differently, and a very few
|
| 66 | features are simply missing. Nickle provides the functionality of Unix bc, dc
|
| 67 | and expr in a different form. It is also an ideal environment for prototyping
|
| 68 | complex algorithms. Nickle's scripting capabilities make it a replacement for
|
| 69 | spreadsheets in some applications, and its numeric features complement the
|
| 70 | limited numeric functionality of text-oriented languages such as AWK and Perl.")
|
| 71 | (home-page "https://nickle.org/")
|
| 72 | (license license:expat)))
|