Premasticado (import+pin local, build en el VPS): 40 CLI Go k8s/devops/charm/ security: argocd/cosign/crane/trivy/trufflehog/vhs/soft-serve/k3d/kind/ kustomize/golangci-lint/goreleaser/air/stern/kubectx/helmfile/gomplate/... Cola del VPS ahora ~83. Aprendizaje: Rust cola-larga de crates.io NO esta en nixpkgs (0/7); Go es la veta (en nixpkgs, 100% yield). import-batch: usar -f <file>, no args sueltos (zsh no splitea). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.3 KiB
TOML
37 lines
1.3 KiB
TOML
# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero
|
|
# YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el
|
|
# sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild.
|
|
name = "tea"
|
|
version = "0.9.2"
|
|
|
|
[source]
|
|
tarball = "https://gitea.com/gitea/tea/archive/v0.9.2.tar.gz"
|
|
# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
|
|
# sha512 = "05be2ea5f845773324c10fe8f0340c96f40f392b7ef8cafb44463b7a5492de2216799d8cc339e7dc42e921afcd3ba0e21be133a87385e907af47261733935e62"
|
|
sha256 = "ba05840a1be725517c9834e947262b33d36af1076dbdf7815cdc47d2e44c6fb1"
|
|
|
|
[build]
|
|
compiler = "zig-cc"
|
|
target = "x86_64-linux-musl"
|
|
link = "static"
|
|
flags = []
|
|
|
|
[build.phases]
|
|
# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
|
|
compile = '''
|
|
_abuild_phase() {
|
|
local sdk=$(go list -f '{{.Version}}' -m code.gitea.io/sdk/gitea)
|
|
|
|
go build -ldflags "-X main.Version=0.9.2 -X main.SDK=$sdk" -o tea
|
|
}
|
|
_abuild_phase
|
|
'''
|
|
# de package() de Alpine (traducido $pkgdir→/out):
|
|
install = '''
|
|
_abuild_phase() {
|
|
install -Dm755 "$builddir"/tea "/out"/usr/bin/tea
|
|
install -Dm644 "$srcdir"/bash_autocomplete "/out"/usr/share/bash-completion/completions/tea
|
|
}
|
|
_abuild_phase
|
|
'''
|