guix_mirror_bot pushed a commit to branch add-muon
in repository guix.

commit 3a8740ecc48b6eebe41f64927979e55adeab6a99
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Fri May 23 10:29:48 2025 +0900

    gnu: Add muon-as-meson-wrapper.
    
    * gnu/packages/build-tools.scm (muon-as-meson-wrapper): New variable.
    
    Change-Id: I13d9a71e0be896e47115379415b88f0969e207a5
---
 gnu/packages/build-tools.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index 6e4b06b0e0..f456f1fab3 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -43,6 +43,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system guile)
+  #:use-module (guix build-system trivial)
   #:use-module (guix modules)
   #:use-module (guix search-paths)
   #:use-module (gnu packages)
@@ -423,6 +424,25 @@ resembles Python.")
 with minimal dependencies.")
     (license license:gpl3)))            ;for the combined work
 
+(define-public muon-as-meson-wrapper
+  (package/inherit muon
+    (name "muon-as-meson-wrapper")
+    (build-system trivial-build-system)
+    (arguments
+     (list #:builder
+           (with-imported-modules '((guix build utils))
+             #~(begin
+                 (use-modules (guix build utils))
+                 (let ((bindir (string-append #$output "/bin"))
+                       (samu (string-append #$(this-package-input "muon")
+                                            "/bin/muon")))
+                   (mkdir-p bindir)
+                   (symlink samu (string-append bindir "/meson")))))))
+    (inputs (list muon))
+    (description "This package provides the @command{meson} command,
+implemented as a symbolic link to the @command{muon} command of @code{muon}
+package.")))
+
 (define-public premake4
   (package
     (name "premake")

Reply via email to