* bug#75237: Packaging ghostty terminal
@ 2025-01-01 3:07 boogs via Bug reports for GNU Guix
2025-01-01 13:44 ` Murilo via Bug reports for GNU Guix
0 siblings, 1 reply; 3+ messages in thread
From: boogs via Bug reports for GNU Guix @ 2025-01-01 3:07 UTC (permalink / raw)
To: 75237
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
Hi,
I'm looking to package the ghostty terminal (https://ghostty.org/docs/install/build) but I ran into an issue with the zig build system pertaining to the dependencies?
I've attached the package definition including the error output below. I would appreciate some pointers here please.
[-- Attachment #2: packages.scm --]
[-- Type: text/plain, Size: 1669 bytes --]
(define-module (boogs packages)
#:use-module (guix build-system zig)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (gnu packages glib)
#:use-module (gnu packages zig-xyz)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages zig)
#:use-module (srfi srfi-1))
(define-public ghostty
(let* ((version "1.0.0")
(commit (string-append "v" version)))
(package
(name "ghostty")
(version version)
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ghostty-org/ghostty.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0cs1n7qddy2487hbw72v0h23ybdmp25cag00q46pk0czi5kkawh0"))))
(build-system zig-build-system)
(arguments
(list #:zig zig-0.13
#:install-source? #f))
(native-inputs
(list gtk
libadwaita
pkg-config
zig))
(home-page "https://www.ghossty.org/")
(synopsis "Fast, feature-rich, and cross-platform terminal
emulator that uses platform-native UI and GPU acceleration.")
(description
"Ghostty is a terminal emulator that differentiates itself by
being fast, feature-rich, and native. While there are many excellent
terminal emulators available, they all force you to choose between
speed, features, or native UIs. Ghostty provides all three.")
(license expat))))
ghostty
[-- Attachment #3: bug-ghostty-1.0.0.drv.gz --]
[-- Type: application/octet-stream, Size: 13948 bytes --]
[-- Attachment #4: Type: text/plain, Size: 12 bytes --]
--
boogs
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#75237: Packaging ghostty terminal
2025-01-01 3:07 bug#75237: Packaging ghostty terminal boogs via Bug reports for GNU Guix
@ 2025-01-01 13:44 ` Murilo via Bug reports for GNU Guix
2025-01-01 18:12 ` boogs via Bug reports for GNU Guix
0 siblings, 1 reply; 3+ messages in thread
From: Murilo via Bug reports for GNU Guix @ 2025-01-01 13:44 UTC (permalink / raw)
To: boogs, 75237
Hi, sadly its not an easy task as you might be expecting it to be.
It vendors a lot of dependencies in the repository and recursive dependency
replacing with zig fetch isn't quite there yet so we have to do some more work,
create a cache and vendor it with --system. I don't know if this is the best
approach since I never touched anything zig, but it seems to be the easiest from
my research.
Fortunately I've already went through the trouble and packaged it on my channel
a couple days ago so you can use it right away :)
Feel free to take a look at my package definition [0] or use my channel [1]. I
plan to upstream it here once holidays are over and I have some free time, whats
left to do is looking at the vendored sources one by one to ensure everything is
free and there are no nasty pre-built stuff inside the sources, and see if any
of it can be made into a proper guix package so we can use it as normal inputs.
Feel free to help with those too if you want to, the more help the merrier :)
[0] https://codeberg.org/look/saayix/src/branch/entropy/saayix/packages/terminals.scm
[1] https://codeberg.org/look/saayix
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#75237: Packaging ghostty terminal
2025-01-01 13:44 ` Murilo via Bug reports for GNU Guix
@ 2025-01-01 18:12 ` boogs via Bug reports for GNU Guix
0 siblings, 0 replies; 3+ messages in thread
From: boogs via Bug reports for GNU Guix @ 2025-01-01 18:12 UTC (permalink / raw)
To: Murilo; +Cc: 75237
[-- Attachment #1: Type: text/html, Size: 1941 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-02 11:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-01 3:07 bug#75237: Packaging ghostty terminal boogs via Bug reports for GNU Guix
2025-01-01 13:44 ` Murilo via Bug reports for GNU Guix
2025-01-01 18:12 ` boogs via Bug reports for GNU Guix
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).