diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-04 22:47:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-04 22:47:10 +0900 |
| commit | d1cef3087752afa436c5011dbedfc6fa8bd039ac (patch) | |
| tree | 3f8c771c611547f6ffed98391631da1cfa368632 | |
| parent | 0188a3f0c779ec6cf369f0fa1bc11ba063d75633 (diff) | |
internal/rosa/gtk: fetch glib source via git
This eliminates xz dependency.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/gtk.go | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/internal/rosa/gtk.go b/internal/rosa/gtk.go index 9339bd9e..902d6975 100644 --- a/internal/rosa/gtk.go +++ b/internal/rosa/gtk.go @@ -1,8 +1,6 @@ package rosa import ( - "strings" - "hakurei.app/fhs" "hakurei.app/internal/pkg" ) @@ -10,16 +8,13 @@ import ( func (t Toolchain) newGLib() (pkg.Artifact, string) { const ( version = "2.88.0" - checksum = "bCLkAmp1o_Po4cXDbC06AyjLyxkBxyNJnflwBpSdf4W8K6dc9xKj6Pm3JYbHPdDf" + checksum = "T79Cg4z6j-sDZ2yIwvbY4ccRv2-fbwbqgcw59F5NQ6qJT6z4v261vbYp3dHO6Ma3" ) - return t.NewPackage("glib", version, pkg.NewHTTPGet( - nil, "https://download.gnome.org/sources/glib/"+ - strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+ - "/glib-"+version+".tar.xz", + return t.NewPackage("glib", version, t.NewViaGit( + "https://gitlab.gnome.org/GNOME/glib.git", + "refs/tags/"+version, mustDecode(checksum), ), &PackageAttr{ - SourceKind: SourceKindTarXZ, - Paths: []pkg.ExecPath{ pkg.Path(fhs.AbsEtc.Append( "machine-id", @@ -39,7 +34,6 @@ func (t Toolchain) newGLib() (pkg.Artifact, string) { {"Ddefault_library", "both"}, }, }, - XZ, PythonPackaging, Bash, |
