Subject: [PATCH] gnu: luajit: Update to v2.1 commit 04dca7911.

From: Jan Wielkiewicz <[email-masked]>
Date: Wed, 7 Aug 2024 03:14:37 +0200

* gnu/packages/lua.scm (luajit): Update to 04dca7911.
[source]: Update checksum.
[arguments]: Don't symlink (on this branch the binary is simply "luajit").

Change-Id: I7aca5df134286c14a5049e88f370e8286647233d
---
 gnu/packages/lua.scm | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 1e583b59b3..b47ea67e8e 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2023 Yovan Naumovski <[email-masked]>
 ;;; Copyright © 2023 Valter Nazianzeno <[email-masked]>
 ;;; Copyright © 2023 Timo Wilken <[email-masked]>
+;;; Copyright © 2024 Jan Wielkiewicz <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -166,8 +167,8 @@ (define-public lua-5.1
                                       "lua51-pkgconfig.patch"))))))
 
 (define-public luajit
-  (let ((branch "2.1.0-beta3")
-        (commit "6c4826f12c4d33b8b978004bc681eb1eef2be977"))
+  (let ((branch "v2.1")
+        (commit "04dca7911ea255f37be799c18d74c305b921c1a6"))
     (package
       (name "luajit")
       (version (git-version branch "0" commit))
@@ -179,20 +180,13 @@ (define-public luajit
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "1a002yh8v1i1q9w09494q0b8vsbmw3amn9jgfs5qnz7ba54jij0q"))))
+                  "0srwk9nmiz8a93f70inq2597ff6xy203ckr4c0k7jcksdixymi9v"))))
       (build-system gnu-build-system)
       (arguments
        `(#:tests? #f                    ; luajit is distributed without tests
          #:phases
          (modify-phases %standard-phases
-           (delete 'configure)          ; no configure script
-           (add-after 'install 'create-luajit-symlink
-             (lambda* (#:key outputs #:allow-other-keys)
-               (let* ((out (assoc-ref outputs "out"))
-                      (bin (string-append out "/bin")))
-                 (with-directory-excursion bin
-                   (symlink ,(string-append name "-" branch)
-                            ,name))))))
+           (delete 'configure)) ; no configure script
          #:make-flags (list (string-append "PREFIX="
                                            (assoc-ref %outputs "out")))))
       (home-page "https://www.luajit.org/")

base-commit: 5e567587dd4abf51f9a6fa44f5a852dde1115ce9
-- 
2.45.2