From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Ahmad Draidi <a.r.draidi@redscript.org>, 64348@debbugs.gnu.org
Subject: [bug#64348] [PATCH v3] gnu: Add durden.
Date: Sat, 30 Mar 2024 09:12:42 +0100 [thread overview]
Message-ID: <5e3e85482e05e549f8ca592a5f6b0768e3c9b8c0.camel@gmail.com> (raw)
In-Reply-To: <327a8de76ef6d95f5627f648bbfbe3877d29457f.1704090914.git.a.r.draidi@redscript.org>
Am Montag, dem 01.01.2024 um 10:36 +0400 schrieb Ahmad Draidi:
> * gnu/packages/arcan.scm (durden): New variable.
>
> Change-Id: I3ea34563c74c227eed40f4ad50d23713c45ce70b
> ---
> v2 changes: Rebase to fix conflicts
> v3 changes: Update to commit matching Arcan 0.6.3 (68016)
>
> gnu/packages/arcan.scm | 40 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/gnu/packages/arcan.scm b/gnu/packages/arcan.scm
> index 4ca76edbec..9a575e98d4 100644
> --- a/gnu/packages/arcan.scm
> +++ b/gnu/packages/arcan.scm
> @@ -20,6 +20,7 @@
>
> (define-module (gnu packages arcan)
> #:use-module (guix build-system cmake)
> + #:use-module (guix build-system copy)
> #:use-module (guix build-system meson)
> #:use-module (guix build-system gnu)
> #:use-module (guix gexp)
> @@ -183,6 +184,45 @@ (define-public arcan-sdl
> "-DSTATIC_FREETYPE=off" "-DSHMIF_TUI_ACCEL=on")))))
> (synopsis "Combined display server, multimedia framework and
> game engine (SDL)")))
>
> +(define-public durden
> + ;; Match Arcan 0.6.3
> + (let ((commit "a8938b9c835f55bedc2c42aec4ddc5c9739eb949")
> + (revision "1"))
> + (package
> + (name "durden")
> + (version (git-version "0.6.1" revision commit))
> + (source
> + (origin
> + (method git-fetch)
> + (file-name (git-file-name name version))
> + (uri (git-reference
> + (url "https://github.com/letoram/durden")
> + (commit commit)))
> + (sha256
> + (base32
> "1ybi6x2kwn597kjqycrqmlvp6z79yv2jfwzgx937wcckm55xlpvk"))))
> + (build-system copy-build-system)
> + (arguments
> + (list
> + #:install-plan #~'(("durden/" "share/arcan/appl/durden/")
> + ("util/" "share/arcan/appl/durden/util/")
> + ("distr/durden" "bin/durden"))
> + #:phases #~(modify-phases %standard-phases
> + (add-after 'unpack 'patch-paths
> + (lambda* (#:key outputs #:allow-other-keys)
> + (substitute* "distr/durden"
> + (("/usr/share/\\$applname")
> + (string-append (assoc-ref outputs "out")
> +
> "/share/arcan/appl"))))))))
> + (home-page "https://durden.arcan-fe.com/")
I think there might be some commands like arcan and date (from
coreutils) which you might have to hard-code to comply with Guix
packaging practices. If you want to allow the user environment to
shadow them, you could make use of the following shell snippet:
if [ -n "$(command -v THE_COMMAND 2>/dev/null)" ]; then
THE_COMMAND="THE_COMMAND"
else
THE_COMMAND="@THE_COMMAND_STORE_PATH@"
fi
and then refer to THE_COMMAND via "${THE_COMMAND}" elsewhere.
Cheers
next prev parent reply other threads:[~2024-03-30 8:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-29 10:21 [bug#64348] [PATCH] gnu: Add durden Ahmad Draidi via Guix-patches via
2023-12-09 17:01 ` [bug#64348] [PATCH v2] " Ahmad Draidi via Guix-patches via
2024-01-01 6:36 ` [bug#64348] [PATCH v3] " Ahmad Draidi via Guix-patches via
2024-03-30 8:12 ` Liliana Marie Prikler [this message]
2024-04-09 11:20 ` [bug#64348] [PATCH v4] " Ahmad Draidi via Guix-patches via
2024-04-09 11:59 ` Ahmad Draidi via Guix-patches via
2024-04-09 16:56 ` [bug#64348] [PATCH v5] " Ahmad Draidi via Guix-patches via
2024-04-11 10:40 ` bug#64348: " Ludovic Courtès
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=5e3e85482e05e549f8ca592a5f6b0768e3c9b8c0.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=64348@debbugs.gnu.org \
--cc=a.r.draidi@redscript.org \
/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).