# 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 = "cargo-license" version = "0.7.0" [source] tarball = "https://crates.io/api/v1/crates/cargo-license/0.7.0/download" # FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine: # sha512 = "9b3f0ead35515e85ef4074ebdbdbe5b9ec8bcaec244fabe414e2ed60f90366e8b1692d8bf7ffe4c07d778e60d94bab86bc0c8be9823232e9c360a38bc65e9c5a" sha256 = "FIXME-sha256" [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() { cargo auditable build --release --frozen } _abuild_phase ''' # de package() de Alpine (traducido $pkgdir→/out): install = ''' _abuild_phase() { install -Dm755 target/release/cargo-license -t "/out"/usr/bin } _abuild_phase '''