diff options
Diffstat (limited to 'gnu/packages/lua.scm')
| -rw-r--r-- | gnu/packages/lua.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index bd0d58a559c..ee7480a8520 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | #:use-module (guix utils) | 35 | #:use-module (guix utils) |
| 36 | #:use-module (guix build-system gnu) | 36 | #:use-module (guix build-system gnu) |
| 37 | #:use-module (guix build-system cmake) | 37 | #:use-module (guix build-system cmake) |
| 38 | #:use-module (guix build-system trivial) | ||
| 38 | #:use-module (gnu packages) | 39 | #:use-module (gnu packages) |
| 39 | #:use-module (gnu packages readline) | 40 | #:use-module (gnu packages readline) |
| 40 | #:use-module (gnu packages tls) | 41 | #:use-module (gnu packages tls) |
| @@ -339,6 +340,46 @@ secure session between the peers.") | |||
| 339 | (define-public lua5.2-sec | 340 | (define-public lua5.2-sec |
| 340 | (make-lua-sec "lua5.2-sec" lua-5.2)) | 341 | (make-lua-sec "lua5.2-sec" lua-5.2)) |
| 341 | 342 | ||
| 343 | (define-public lua-penlight | ||
| 344 | (package | ||
| 345 | (name "lua-penlight") | ||
| 346 | (version "1.7.0") | ||
| 347 | (source | ||
| 348 | (origin | ||
| 349 | (method git-fetch) | ||
| 350 | (uri (git-reference | ||
| 351 | (url "https://github.com/Tieske/Penlight.git") | ||
| 352 | (commit version))) | ||
| 353 | (file-name (git-file-name name version)) | ||
| 354 | (sha256 | ||
| 355 | (base32 "0qc2d1riyr4b5a0gnsmdw2lz5pw65s4ac60hc34w3mmk9l6yg6nl")))) | ||
| 356 | (build-system trivial-build-system) | ||
| 357 | (inputs | ||
| 358 | `(("lua" ,lua))) | ||
| 359 | (propagated-inputs | ||
| 360 | `(("lua-filesystem" ,lua-filesystem))) | ||
| 361 | (arguments | ||
| 362 | `(#:modules ((guix build utils)) | ||
| 363 | #:builder | ||
| 364 | (begin | ||
| 365 | (use-modules (guix build utils)) | ||
| 366 | (let* ((source (assoc-ref %build-inputs "source")) | ||
| 367 | (lua-version ,(version-major+minor (package-version lua))) | ||
| 368 | (destination (string-append (assoc-ref %outputs "out") | ||
| 369 | "/share/lua/" lua-version))) | ||
| 370 | (mkdir-p destination) | ||
| 371 | (with-directory-excursion source | ||
| 372 | (copy-recursively "lua/" destination))) | ||
| 373 | #t))) | ||
| 374 | (home-page "http://tieske.github.io/Penlight/") | ||
| 375 | (synopsis "Collection of general purpose libraries for the Lua language") | ||
| 376 | (description "Penlight is a set of pure Lua libraries focusing on | ||
| 377 | input data handling (such as reading configuration files), functional | ||
| 378 | programming (such as map, reduce, placeholder expressions,etc), and OS | ||
| 379 | path management. Much of the functionality is inspired by the Python | ||
| 380 | standard libraries.") | ||
| 381 | (license license:expat))) | ||
| 382 | |||
| 342 | (define (make-lua-lgi name lua) | 383 | (define (make-lua-lgi name lua) |
| 343 | (package | 384 | (package |
| 344 | (name name) | 385 | (name name) |
