unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Guix Devel <guix-devel@gnu.org>
Subject: Using (recursive #t) in (origin git-reference)
Date: Tue, 20 Jun 2023 11:11:05 -0700	[thread overview]
Message-ID: <CAFHYt56723mtp_vd=ih1jLVYstTBBq+_Q4zHmf8i-LEF2=zGTQ@mail.gmail.com> (raw)

Hi,

Is there a trick to fetching Git submodules with (recursive? #t)? It
does not seem to work with the package definition below.

The code uses Ekaitz's proposed Zig build system. [1] Thank you!

Kind regards
Felix

[1] https://issues.guix.gnu.org/60889

* * *
gnu: Add river.

* gnu/packages/zig.scm (river): New variable.

1 file changed, 45 insertions(+), 2 deletions(-)
gnu/packages/zig-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++--

modified   gnu/packages/zig-xyz.scm
@@ -21,10 +22,52 @@ (define-module (gnu packages zig-xyz)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system zig)
   #:use-module (guix gexp)
   #:use-module (gnu packages)
-  #:use-module (gnu packages zig)
-  #:use-module (gnu packages python))
+  #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages man)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages wm)
+  #:use-module (gnu packages xdisorg)
+  #:use-module (gnu packages xorg)
+  #:use-module (gnu packages zig))
+
+(define-public river
+  (package
+    (name "river")
+    (version "0.2.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/riverwm/river")
+                    (commit (string-append "v" version))
+                    (recursive? #t)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1kh5yh2a47vr2q9paivmm3d57rcbb3f2p6d4f4r4k6f7jf62391n"))))
+    (build-system zig-build-system)
+    (arguments
+     (list
+      #:zig-build-flags #~(list "-Dxwayland")  ;experimental xwayland support
+      #:zig-release-type "safe"))
+    (native-inputs (list
+                    libevdev
+                    libxkbcommon
+                    pkg-config
+                    pixman
+                    scdoc
+                    wayland
+                    wayland-protocols
+                    wlroots))
+    (home-page "https://github.com/riverwm/river")
+    (synopsis "Dynamic tiling Wayland compositor")
+    (description "River is a dynamic tiling Wayland compositor with flexible
+runtime configuration.  It can run nested in an X11/Wayland session or also
+directly from a tty using KMS/DRM.")
+    (license license:gpl3)))

 (define-public zig-zls
   (package


             reply	other threads:[~2023-06-20 18:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20 18:11 Felix Lechner via Development of GNU Guix and the GNU System distribution. [this message]
2023-06-20 18:40 ` Using (recursive #t) in (origin git-reference) (
2023-06-20 19:33   ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-06-20 19:47     ` John Kehayias
2023-06-20 19:50       ` (

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFHYt56723mtp_vd=ih1jLVYstTBBq+_Q4zHmf8i-LEF2=zGTQ@mail.gmail.com' \
    --to=guix-devel@gnu.org \
    --cc=felix.lechner@lease-up.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).