From: Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
To: Tim Van den Langenbergh <tmt_vdl@gmx.com>
Cc: 42249@debbugs.gnu.org
Subject: [bug#42249] [PATCH] gnu: Add font-libertinus.
Date: Tue, 07 Jul 2020 20:02:13 +0200 [thread overview]
Message-ID: <87h7ujryoq.fsf@nckx> (raw)
In-Reply-To: <trinity-028ea7db-ac40-4f11-8fa2-6ccb8c22f33b-1594135101235@3c-app-mailcom-bs03>
[-- Attachment #1: Type: text/plain, Size: 2792 bytes --]
Tim,
Tim Van den Langenbergh 写道:
> I am rather fond of the Libertinus Mono font for Emacs, as I
> like my Monospace fonts to have Serifs.
Interesting…
> As others may like the font as well I have created a patch to
> add it to the fonts package.
Thank you!
> This being the first patch I have ever submitted to Guix I'm not
> entirely sure I did everything right, I followed the Submitting
> Patches part of the manual as close as I could, but I may have
> made a mistake somewhere, so feel free to correct me where
> needed.
Your first commit message is flawless; congratulations! :-)
However, [how] did you install and test this package? This:
+ (source (origin
+ (method git-fetch)
+ (uri (string-append
"https://github.com/alerque/libertinus/"
+ "commit/"
+
"800155085d4a1592dc6e76b34cd625794cd0fcdf"))
+ (sha256
+ (base32
"1mj0d84k1x15hsgksca0qjhc3mmzyaqaqa2vyrbb6s96ycsfsgq3"))))
isn't a valid GIT-FETCH origin:
--8<---------------cut here---------------start------------->8---
~/guix master λ guix build font-libertinus
Backtrace:
In ice-9/boot-9.scm:
1736:10 4 (with-exception-handler _ _ #:unwind? _
#:unwind-for-type _)
In unknown file:
3 (apply-smob/0 #<thunk 72848587f160>)
In ice-9/boot-9.scm:
718:2 2 (call-with-prompt _ _ #<procedure
default-prompt-handler (k proc)>)
In ice-9/eval.scm:
619:8 1 (_ #(#(#<directory (guile-user) 72848546ff00>)))
In guix/ui.scm:
1953:12 0 (run-guix-command _ . _)
guix/ui.scm:1953:12: In procedure run-guix-command:
In procedure struct-vtable: Wrong type argument in position 1
(expecting struct):
"https://github.com/alerque/libertinus/commit/800155085d4a1592dc6e76b34cd625794cd0fcdf"
--8<---------------cut here---------------end--------------->8---
I replaced it with:
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alerque/libertinus")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
"0flj3xwj8x938wh614ch295j040ccnha1nzmlg5sgpsyxg5gjsbf"))))
Note the ‘commit’ that isn't.
If you're lucky (which is most of the time), upstream will tag
releases & you won't need to hard-code the commit. This makes
updating the package later much easier.
I don't know GitHub well enough to link to it directly, but you
can find a list of tags under the top-left ‘Branch: main’
drop-down here[0].
Now I get an encoding error which is probably not your ‘fault’…
Guile can be picky when it comes to locales. I'll poke at it some
more.
Kind regards,
T G-R
[0]: https://github.com/alerque/libertinus
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2020-07-07 18:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-07 15:18 [bug#42249] [PATCH] gnu: Add font-libertinus Tim Van den Langenbergh
2020-07-07 18:02 ` Tobias Geerinckx-Rice via Guix-patches via [this message]
2020-07-07 18:18 ` Tim Van den Langenbergh
2020-07-09 13:06 ` bug#42249: " Tobias Geerinckx-Rice via Guix-patches via
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7ujryoq.fsf@nckx \
--to=guix-patches@gnu.org \
--cc=42249@debbugs.gnu.org \
--cc=me@tobias.gr \
--cc=tmt_vdl@gmx.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.