lilyp pushed a commit to branch master
in repository guix.

commit 80aeefd517b1355ccd1accb09f0d998d84436beb
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Sat Sep 25 11:14:52 2021 +0200

    gnu: love-nuklear: Install to lib/love.
    
    * gnu/packages/game-development.scm (love-nuklear)[#:phases]: Add
    ‘patch-cmake’ phase to change install destination.
---
 gnu/packages/game-development.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 41de1fe..06bf404 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -840,7 +840,13 @@ programming language.")
     (build-system cmake-build-system)
     (arguments
      `(#:build-type "Release"
-       #:tests? #f))
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-cmake
+           (lambda _
+             (substitute* "CMakeLists.txt"
+               (("DESTINATION .") "DESTINATION lib/love")))))))
     (inputs
      `(("luajit" ,luajit)))
     (synopsis "Lightweight immediate mode GUI for LÖVE games")

Reply via email to