# 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    = "when"
version = "1.1.45"

[source]
tarball = "https://bitbucket.org/ben-crowell/when/get/3dacb13c155e.tar.gz"
# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
# sha512 = "5e0a62d2770c81d77b486b2a8d300c5fb20de36b81b7cf3a60d3e5d985ff4f689a57aecb7b6b659982b975b95b624a1354aeac35dc4b42411a4251adf7cedaf7"
sha256  = "2cd8b8d9e7cfa1972da3cebec579a83511843b439b9b98c41861eae0da81530c"

[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "static"
flags    = []

[deps]
build = ["make"]

[build.phases]
# de package() de Alpine (traducido $pkgdir→/out):
install = '''
_abuild_phase() {
make install DESTDIR="/out"
}
_abuild_phase
'''

# depends de runtime de Alpine (NO build-deps): perl
