From 420b6a85558204f3261d81e443e0c2c81e9c790b Mon Sep 17 00:00:00 2001 From: Ivana Drazovic Date: Wed, 19 Apr 2023 21:53:54 +0200 Subject: gnu: laby: Use new package style. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/games.scm (laby)[arguments]: Use gexps. Use "this-package-input" to locate package input. Co-authored-by: Florian Pelz Signed-off-by: Ludovic Courtès --- gnu/packages/games.scm | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2e3994543a..58c09a5b3b 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -76,6 +76,8 @@ ;;; Copyright © 2022 Hendursaga ;;; Copyright © 2022 Parnikkapore ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 Florian Pelz +;;; Copyright © 2023 Ivana Drazovic ;;; ;;; This file is part of GNU Guix. ;;; @@ -5903,17 +5905,17 @@ (define-public laby (inputs (list lablgtk3 ocaml-lablgtk3-sourceview3 ocaml ocaml-findlib ocamlbuild)) (arguments - '(#:phases - (modify-phases %standard-phases - (delete 'configure) - (add-before 'build 'set-library-path - (lambda* (#:key inputs #:allow-other-keys) - (let ((lablgtk (assoc-ref inputs "lablgtk"))) - (setenv "LD_LIBRARY_PATH" - (string-append lablgtk "/lib/ocaml/stublibs")))))) - #:tests? #f ; no 'check' target - #:make-flags - (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all"))) + (list #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'set-library-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((lablgtk #$(this-package-input "lablgtk"))) + (setenv "LD_LIBRARY_PATH" + (string-append lablgtk "/lib/ocaml/stublibs")))))) + #:tests? #f ; no 'check' target + #:make-flags + #~(list (string-append "PREFIX=" #$output) "all"))) (home-page "https://sgimenez.github.io/laby/") (synopsis "Programming game") (description "Learn programming, playing with ants and spider webs ;-) -- cgit v1.2.3