[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/13: gnu: corsix-th: Use G-expressions.
From: |
guix-commits |
Subject: |
09/13: gnu: corsix-th: Use G-expressions. |
Date: |
Mon, 14 Aug 2023 15:37:11 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 05c7e70b966f7080f48bd685cf75fa52ff6820a4
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Aug 6 02:00:00 2023 +0200
gnu: corsix-th: Use G-expressions.
* gnu/packages/games.scm (corsix-th)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/games.scm | 39 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 56ecb65454..a417630624 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1172,26 +1172,25 @@ allows users to brew while offline.")
(base32 "14996kbrwdrd0gpz19il2i4p650qdhjw8v8ka3aigk6pl4kda3sq"))))
(build-system cmake-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'install 'wrap-binary
- (lambda _
- ;; Set Lua module paths and default MIDI soundfont on startup.
- (let* ((out (assoc-ref %outputs "out"))
- (fluid (assoc-ref %build-inputs "fluid-3"))
- (lua-version ,(version-major+minor (package-version lua)))
- (lua-cpath
- (map (lambda (lib)
- (string-append
- (assoc-ref %build-inputs (string-append "lua-"
lib))
- "/lib/lua/" lua-version "/?.so"))
- '("filesystem" "lpeg"))))
- (wrap-program (string-append out "/bin/corsix-th")
- `("LUA_CPATH" ";" = ,lua-cpath)
- `("SDL_SOUNDFONTS" ":" suffix
- (,(string-append fluid
"/share/soundfonts/FluidR3Mono_GM.sf3")))))
- #t)))
- #:tests? #f)) ; TODO need busted package to run tests
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-binary
+ (lambda _
+ ;; Set Lua module paths and default MIDI soundfont on startup.
+ (let* ((fluid #$(this-package-input "fluid-3"))
+ (lua-version #$(version-major+minor (package-version
lua)))
+ (lua-cpath
+ (map (lambda (lib)
+ (string-append
+ (assoc-ref %build-inputs (string-append "lua-"
lib))
+ "/lib/lua/" lua-version "/?.so"))
+ '("filesystem" "lpeg"))))
+ (wrap-program (string-append #$output "/bin/corsix-th")
+ `("LUA_CPATH" ";" = ,lua-cpath)
+ `("SDL_SOUNDFONTS" ":" suffix
+ (,(string-append fluid
"/share/soundfonts/FluidR3Mono_GM.sf3"))))))))
+ #:tests? #f)) ; TODO need busted package to run tests
;; Omit Lua-Socket dependency to disable automatic updates.
(inputs
(list ffmpeg
- branch master updated (d0776ff44c -> 2d4ee4677e), guix-commits, 2023/08/14
- 01/13: gnu: mc: Update to 4.8.30., guix-commits, 2023/08/14
- 05/13: gnu: mc: Shrink closure., guix-commits, 2023/08/14
- 07/13: gnu: noweb: Update to 2.13., guix-commits, 2023/08/14
- 08/13: gnu: corsix-th: Update to 0.67., guix-commits, 2023/08/14
- 10/13: gnu: lagrange: Update to 1.16.7., guix-commits, 2023/08/14
- 13/13: gnu: entangle: Update package style., guix-commits, 2023/08/14
- 04/13: gnu: mc: Fix cross-(mis)compilation & substitutions., guix-commits, 2023/08/14
- 09/13: gnu: corsix-th: Use G-expressions.,
guix-commits <=
- 02/13: gnu: mc: Use G-expressions., guix-commits, 2023/08/14
- 11/13: doc: Imply that ~/.nix-profile is not a typo., guix-commits, 2023/08/14
- 12/13: gnu: entangle: Fix build., guix-commits, 2023/08/14
- 06/13: gnu: noweb: Use G-expressions., guix-commits, 2023/08/14
- 03/13: gnu: mc: Remove obsolete substitution., guix-commits, 2023/08/14