# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: # - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá # compiler/link/phases y adaptá hasta que compile. # - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. name = "ast-grep" version = "0.43.0" license = "MIT" [source] repo = "https://github.com/ast-grep/ast-grep" commit = "5fe88553a5dae0798cc92ca201d841a0fd51012f" [build] compiler = "zig-cc" target = "x86_64-linux-musl" link = "static" flags = ["--bin", "ast-grep"] [build.phases] install = "mkdir -p /out/usr/bin && cp target/release/ast-grep /out/usr/bin/ast-grep"