Directories
¶
| Path | Synopsis |
|---|---|
|
Package bob is the core API that bob.go files use to define packages, sources, tools and outputs.
|
Package bob is the core API that bob.go files use to define packages, sources, tools and outputs. |
|
diag
Package diag defines bob's user-facing errors.
|
Package diag defines bob's user-facing errors. |
|
ext
Package ext is the ecosystem extension API: the only way ecosystem packages create graph nodes.
|
Package ext is the ecosystem extension API: the only way ecosystem packages create graph nodes. |
|
internal/graph
Package graph holds what pkg/bob and pkg/bob/ext share without importing each other: the registry of node kinds and the hooks through which ext creates and inspects nodes.
|
Package graph holds what pkg/bob and pkg/bob/ext share without importing each other: the registry of node kinds and the hooks through which ext creates and inspects nodes. |
|
progress
Package progress lets slow engine steps announce what they are doing, so that bob's command line can show a live status line (SPEC §02.5).
|
Package progress lets slow engine steps announce what they are doing, so that bob's command line can show a live status line (SPEC §02.5). |
|
Package builder is the program that runs inside bob derivations (SPEC §1.12, R-NIX-015..019): it reads the job from the structured attributes, runs the kind's work confined to the outputs and the build directory, runs the fixup contract and reports through exit codes.
|
Package builder is the program that runs inside bob derivations (SPEC §1.12, R-NIX-015..019): it reads the job from the structured attributes, runs the kind's work confined to the outputs and the build directory, runs the fixup contract and reports through exit codes. |
|
bspec
Package bspec defines the bob-builder job contract.
|
Package bspec defines the bob-builder job contract. |
|
Package cc is the C and C++ ecosystem API (SPEC §03.1): hermetic static and shared libraries, programs and tests compiled with nixpkgs' gcc by bob-builder, and third-party projects built with their own build system from a source pinned in bob.lock (External).
|
Package cc is the C and C++ ecosystem API (SPEC §03.1): hermetic static and shared libraries, programs and tests compiled with nixpkgs' gcc by bob-builder, and third-party projects built with their own build system from a source pinned in bob.lock (External). |
|
gen
Package gen implements engine.Ecosystem for pkg/cc (SPEC §03.1): it plans one cc-compile-link derivation per library, program and test, a test-run per test, a cc-external derivation per External (source pinned in bob.lock's cc section), and generates compile_commands.json.
|
Package gen implements engine.Ecosystem for pkg/cc (SPEC §03.1): it plans one cc-compile-link derivation per library, program and test, a test-run per test, a cc-external derivation per External (source pinned in bob.lock's cc section), and generates compile_commands.json. |
|
internal/ccspec
Package ccspec holds the IR payloads ("spec") of the C/C++ node kinds.
|
Package ccspec holds the IR payloads ("spec") of the C/C++ node kinds. |
|
Package cli implements the bob command line.
|
Package cli implements the bob command line. |
|
devenv
Package devenv implements the pieces of the developer environment of SPEC §02.7 that do not need the engine: .bob/env.json and the shims, the shell hook scripts and the enter/leave scripts of bob env, the trust list, the hook's eval-key stamps, the LSP path-rewriting proxy and the editor settings.
|
Package devenv implements the pieces of the developer environment of SPEC §02.7 that do not need the engine: .bob/env.json and the shims, the shell hook scripts and the enter/leave scripts of bob env, the trust list, the hook's eval-key stamps, the LSP path-rewriting proxy and the editor settings. |
|
remote
Package remote is the bob CLI's client of a bob server: the Connect protocol (JSON codec) over plain HTTP, the OAuth flows of `bob login` (SPEC §06 §6.3.2), the source upload (§6.9.7) and the remote executor of `bob build --remote` (engine.RemoteExecutor, §02.6).
|
Package remote is the bob CLI's client of a bob server: the Connect protocol (JSON codec) over plain HTTP, the OAuth flows of `bob login` (SPEC §06 §6.3.2), the source upload (§6.9.7) and the remote executor of `bob build --remote` (engine.RemoteExecutor, §02.6). |
|
Package connect is the connectrpc code generator API.
|
Package connect is the connectrpc code generator API. |
|
gen
Package gen implements engine.Ecosystem "connect" (SPEC §03.6, R-GEN-001a, R-GEN-005): one codegen derivation per realised connect.Go / connect.TS recipe (buf generate with the protoc plugins of the nixpkgs pin, offline), built while planning so consumers depend on its content (early cutoff), and materialised into the consumer's owned directory.
|
Package gen implements engine.Ecosystem "connect" (SPEC §03.6, R-GEN-001a, R-GEN-005): one codegen derivation per realised connect.Go / connect.TS recipe (buf generate with the protoc plugins of the nixpkgs pin, offline), built while planning so consumers depend on its content (early cutoff), and materialised into the consumer's owned directory. |
|
internal/connspec
Package connspec holds the IR payload of the connect code generators (written by pkg/connect, read by pkg/connect/gen).
|
Package connspec holds the IR payload of the connect code generators (written by pkg/connect, read by pkg/connect/gen). |
|
Package engine holds the ecosystem registry and the engine.Ecosystem interface.
|
Package engine holds the ecosystem registry and the engine.Ecosystem interface. |
|
build
Package build runs the whole build pipeline from patterns to outputs.
|
Package build runs the whole build pipeline from patterns to outputs. |
|
build/testrun
Package testrun is the engine side of `bob test` (SPEC §03.0.5, R-FW-024, R-FW-064, O-02-9): it finds the test units among the planned derivations, decides which results are cached, makes rerun derivations and reads the results the builder's test-run kind wrote.
|
Package testrun is the engine side of `bob test` (SPEC §03.0.5, R-FW-024, R-FW-064, O-02-9): it finds the test units among the planned derivations, decides which results are cached, makes rerun derivations and reads the results the builder's test-run kind wrote. |
|
drv
Package drv computes Nix derivations, store paths and fixed-output paths.
|
Package drv computes Nix derivations, store paths and fixed-output paths. |
|
eval
Package eval generates and runs the bob.go evaluator in its sandbox.
|
Package eval generates and runs the bob.go evaluator in its sandbox. |
|
eval/evalbox
Package evalbox is the evaluator sandbox of SPEC R-FW-045 (S13 evalbox, ADR 0015): it runs the compile and run steps of a bob.go evaluation, locally and on workers, inside
|
Package evalbox is the evaluator sandbox of SPEC R-FW-045 (S13 evalbox, ADR 0015): it runs the compile and run steps of a bob.go evaluation, locally and on workers, inside |
|
fetch
Package fetch downloads and verifies sources and adds them to the store.
|
Package fetch downloads and verifies sources and adds them to the store. |
|
ir
Package ir defines and validates the graph IR v1.
|
Package ir defines and validates the graph IR v1. |
|
lock
Package lock reads and writes bob.lock.
|
Package lock reads and writes bob.lock. |
|
materialise
Package materialise puts build outputs into the working tree (SPEC §03.6.6, R-FW-007, R-FW-066, R-FW-067): codegen output directories and an npm importer's node_modules (§03.4.3).
|
Package materialise puts build outputs into the working tree (SPEC §03.6.6, R-FW-007, R-FW-066, R-FW-067): codegen output directories and an npm importer's node_modules (§03.4.3). |
|
nar
Package nar reads and writes NAR archives.
|
Package nar reads and writes NAR archives. |
|
nixidx
Package nixidx looks up packages in the nixpkgs index.
|
Package nixidx looks up packages in the nixpkgs index. |
|
nixidx/goname
Package goname is the naming rule of bob's typed nixpkgs surface (ADR 0020 §2), shared by the pin check of pkg/engine/nixidx and the generator cmd/nixpkgsgen.
|
Package goname is the naming rule of bob's typed nixpkgs surface (ADR 0020 §2), shared by the pin check of pkg/engine/nixidx and the generator cmd/nixpkgsgen. |
|
pcflags
Package pcflags is bob's small pkg-config for nixpkgs libraries and Externals (an E0 engine primitive: the builder and the generators may both import it, R-ARCH-003).
|
Package pcflags is bob's small pkg-config for nixpkgs libraries and Externals (an E0 engine primitive: the builder and the generators may both import it, R-ARCH-003). |
|
srcs
Package srcs imports repository sources into the store.
|
Package srcs imports repository sources into the store. |
|
store
Package store runs the embedded rootless Nix store.
|
Package store runs the embedded rootless Nix store. |
|
translate
Package translate turns Nix's `--log-format internal-json` stream into bob diagnostics (ADR 0017, SPEC R-NIX-010, R-NIX-012).
|
Package translate turns Nix's `--log-format internal-json` stream into bob diagnostics (ADR 0017, SPEC R-NIX-010, R-NIX-012). |
|
Package golang is the Go ecosystem API ("go" is a keyword): a module per go.mod, binaries, cgo packages with typed C dependencies, C libraries and tests (SPEC §03.2).
|
Package golang is the Go ecosystem API ("go" is a keyword): a module per go.mod, binaries, cgo packages with typed C dependencies, C libraries and tests (SPEC §03.2). |
|
bop
Package bop implements the Go builder operations: the bob-builder job kinds go-std, go-tools, go-compile, go-cgo, go-link and go-testmain (SPEC §03.0.4, §03.2.3).
|
Package bop implements the Go builder operations: the bob-builder job kinds go-std, go-tools, go-compile, go-cgo, go-link and go-testmain (SPEC §03.0.4, §03.2.3). |
|
gen
Package gen implements engine.Ecosystem for pkg/golang (SPEC §03.2, ADR 0004): bob reads Go sources itself (go/build, no cmd/go), plans one derivation per workspace package and per third-party module, std once per toolchain and target, the link and the test binaries, and generates go.mod/go.sum from bob.go and bob.lock.
|
Package gen implements engine.Ecosystem for pkg/golang (SPEC §03.2, ADR 0004): bob reads Go sources itself (go/build, no cmd/go), plans one derivation per workspace package and per third-party module, std once per toolchain and target, the link and the test binaries, and generates go.mod/go.sum from bob.go and bob.lock. |
|
internal/gospec
Package gospec holds the IR payloads ("spec") of the Go node kinds.
|
Package gospec holds the IR payloads ("spec") of the Go node kinds. |
|
Package graphql is the GraphQL code generator API.
|
Package graphql is the GraphQL code generator API. |
|
gen
Package gen implements engine.Ecosystem for pkg/graphql.
|
Package gen implements engine.Ecosystem for pkg/graphql. |
|
internal/gqlspec
Package gqlspec holds the IR payloads ("spec") of the GraphQL node kinds.
|
Package gqlspec holds the IR payloads ("spec") of the GraphQL node kinds. |
|
Package nixpkgs exposes the packages of nixpkgs as typed bob tools and dependencies.
|
Package nixpkgs exposes the packages of nixpkgs as typed bob tools and dependencies. |
|
nixext
Package nixext is the extension API of bob's own ecosystem packages for nixpkgs (layer L1, ADR 0020 §2): the Attr type and its role methods (Tool, Lib, Pkg, Exe), the options, the typed toolchain packages (Toolchain) and New for computed attributes (cross compilers, versioned toolchains, members of language package sets).
|
Package nixext is the extension API of bob's own ecosystem packages for nixpkgs (layer L1, ADR 0020 §2): the Attr type and its role methods (Tool, Lib, Pkg, Exe), the options, the typed toolchain packages (Toolchain) and New for computed attributes (cross compilers, versioned toolchains, members of language package sets). |
|
Package npm is the TypeScript and npm ecosystem API.
|
Package npm is the TypeScript and npm ecosystem API. |
|
bop
Package bop implements the npm builder operations.
|
Package bop implements the npm builder operations. |
|
gen
Package gen implements engine.Ecosystem for pkg/npm.
|
Package gen implements engine.Ecosystem for pkg/npm. |
|
internal/npmspec
Package npmspec holds the IR payloads ("spec") of the npm node kinds.
|
Package npmspec holds the IR payloads ("spec") of the npm node kinds. |
|
resolve
Package resolve is bob's npm resolver (SPEC §03.4.2, ADR 0006, R-NPM-001a): it turns the npm dependencies declared by importers into the records of bob.lock's "npm" section.
|
Package resolve is bob's npm resolver (SPEC §03.4.2, ADR 0006, R-NPM-001a): it turns the npm dependencies declared by importers into the records of bob.lock's "npm" section. |
|
Package ocaml is the OCaml and opam ecosystem API.
|
Package ocaml is the OCaml and opam ecosystem API. |
|
bop
Package bop implements the OCaml builder operations (job kinds opam-build, ml-compile and ml-link, SPEC §03.0.4, §03.5.3) that bob-builder runs inside OCaml derivations.
|
Package bop implements the OCaml builder operations (job kinds opam-build, ml-compile and ml-link, SPEC §03.0.4, §03.5.3) that bob-builder runs inside OCaml derivations. |
|
gen
Package gen implements engine.Ecosystem for pkg/ocaml.
|
Package gen implements engine.Ecosystem for pkg/ocaml. |
|
internal/mlspec
Package mlspec holds the IR payloads ("spec") of the OCaml node kinds.
|
Package mlspec holds the IR payloads ("spec") of the OCaml node kinds. |
|
resolve
Package resolve is bob's opam dependency resolver (SPEC §03.5.2, R-ML-002, ADR 0007): it reads opam files from a pinned opam-repository snapshot, evaluates their filters for linux/arm64|x86_64 with the toolchain packages fixed to the nixpkgs versions, and picks one version per package.
|
Package resolve is bob's opam dependency resolver (SPEC §03.5.2, R-ML-002, ADR 0007): it reads opam files from a pinned opam-repository snapshot, evaluates their filters for linux/arm64|x86_64 with the toolchain packages fixed to the nixpkgs versions, and picks one version per package. |
|
Package openapi is the OpenAPI code generator API.
|
Package openapi is the OpenAPI code generator API. |
|
gen
Package gen implements engine.Ecosystem for pkg/openapi.
|
Package gen implements engine.Ecosystem for pkg/openapi. |
|
internal/oaspec
Package oaspec holds the IR payloads ("spec") of the OpenAPI node kinds.
|
Package oaspec holds the IR payloads ("spec") of the OpenAPI node kinds. |
|
output
|
|
|
appimage
Package appimage builds AppImages as bob outputs.
|
Package appimage builds AppImages as bob outputs. |
|
appimage/bop
Package bop implements bob-builder's kind "appimage" (SPEC R-OUT-003, R-OUT-007, R-OUT-008, R-OUT-015 – R-OUT-020): it copies the runtime closure of the bundle's programs into an AppDir (minus the Prune globs), writes launch.json, licences.json, the .desktop entry and the icon, runs mksquashfs and appends the image to bob's AppImage runtime.
|
Package bop implements bob-builder's kind "appimage" (SPEC R-OUT-003, R-OUT-007, R-OUT-008, R-OUT-015 – R-OUT-020): it copies the runtime closure of the bundle's programs into an AppDir (minus the Prune globs), writes launch.json, licences.json, the .desktop entry and the icon, runs mksquashfs and appends the image to bob's AppImage runtime. |
|
appimage/gen
Package gen implements engine.Ecosystem for pkg/output/appimage.
|
Package gen implements engine.Ecosystem for pkg/output/appimage. |
|
appimage/internal/aispec
Package aispec holds the IR payload ("spec") of the appimage.bundle node kind.
|
Package aispec holds the IR payload ("spec") of the appimage.bundle node kind. |
|
oci
Package oci builds OCI images as bob outputs.
|
Package oci builds OCI images as bob outputs. |
|
oci/bop
Package bop holds the bob-builder kinds of OCI images (SPEC §04.5): "oci-layer" writes one reproducible layer of store paths, "oci-image" writes the image layout.
|
Package bop holds the bob-builder kinds of OCI images (SPEC §04.5): "oci-layer" writes one reproducible layer of store paths, "oci-image" writes the image layout. |
|
oci/gen
Package gen implements engine.Ecosystem for pkg/output/oci.
|
Package gen implements engine.Ecosystem for pkg/output/oci. |
|
oci/internal/ocispec
Package ocispec holds the IR payload of the OCI image kind.
|
Package ocispec holds the IR payload of the OCI image kind. |
|
tarball
Package tarball builds tarballs as bob outputs.
|
Package tarball builds tarballs as bob outputs. |
|
tarball/bop
Package bop holds the bob-builder kind "tarball" (SPEC R-OUT-004): a reproducible <name>-<platform>.tar.gz of a closure or of one static executable (tar and gzip rules of R-OUT-010).
|
Package bop holds the bob-builder kind "tarball" (SPEC R-OUT-004): a reproducible <name>-<platform>.tar.gz of a closure or of one static executable (tar and gzip rules of R-OUT-010). |
|
tarball/gen
Package gen implements engine.Ecosystem for pkg/output/tarball (SPEC R-OUT-004).
|
Package gen implements engine.Ecosystem for pkg/output/tarball (SPEC R-OUT-004). |
|
tarball/internal/tarspec
Package tarspec holds the IR payload of the tarball kind (written by pkg/output/tarball, read by pkg/output/tarball/gen).
|
Package tarspec holds the IR payload of the tarball kind (written by pkg/output/tarball, read by pkg/output/tarball/gen). |
|
Package proto is the protobuf code generator API.
|
Package proto is the protobuf code generator API. |
|
gen
Package gen implements engine.Ecosystem "proto" (SPEC §03.6): protobuf libraries resolve to their imported .proto files (the code generators read them), checks (proto.Lint, proto.Breaking) are test units running buf.
|
Package gen implements engine.Ecosystem "proto" (SPEC §03.6): protobuf libraries resolve to their imported .proto files (the code generators read them), checks (proto.Lint, proto.Breaking) are test units running buf. |
|
internal/protospec
Package protospec holds the IR payloads of the protobuf kinds (written by pkg/proto, read by pkg/proto/gen and pkg/connect/gen through their own copies of these JSON shapes).
|
Package protospec holds the IR payloads of the protobuf kinds (written by pkg/proto, read by pkg/proto/gen and pkg/connect/gen through their own copies of these JSON shapes). |
|
Package release defines releases as built objects.
|
Package release defines releases as built objects. |
|
bop
Package bop holds the bob-builder kind "release": it writes release.json, the release manifest bob.release/v1 (SPEC R-OUT-023), from the built artifacts.
|
Package bop holds the bob-builder kind "release": it writes release.json, the release manifest bob.release/v1 (SPEC R-OUT-023), from the built artifacts. |
|
gen
Package gen implements engine.Ecosystem for pkg/release (SPEC §04.8).
|
Package gen implements engine.Ecosystem for pkg/release (SPEC §04.8). |
|
internal/relspec
Package relspec holds the IR payload of the release kind (written by pkg/release, read by pkg/release/gen).
|
Package relspec holds the IR payload of the release kind (written by pkg/release, read by pkg/release/gen). |
|
Package rust is the Rust ecosystem API (SPEC §03.3, ADR 0005): local crates (Library, ProcMacro, StaticLib, CDylib, Binary), their crates.io dependencies (Crate) and tests (Test).
|
Package rust is the Rust ecosystem API (SPEC §03.3, ADR 0005): local crates (Library, ProcMacro, StaticLib, CDylib, Binary), their crates.io dependencies (Crate) and tests (Test). |
|
bop
Package bop implements the Rust builder operations (job kinds rustc and rust-build-run, SPEC §03.0.4, §03.3.3) that bob-builder runs inside Rust derivations.
|
Package bop implements the Rust builder operations (job kinds rustc and rust-build-run, SPEC §03.0.4, §03.3.3) that bob-builder runs inside Rust derivations. |
|
gen
Package gen implements engine.Ecosystem for pkg/rust (SPEC §03.3): Lock (crates.io resolution with pkg/rust/resolve, one download per crate for its checksum, NAR hash and Cargo.toml facts), Plan (per-crate-unit derivations from bob.lock alone, R-RS-005), Native (Cargo.toml, Cargo.lock, .cargo/config.toml, .bob/vendor) and PrepareDev (rustc, cargo, rust-analyzer, rust-project.json).
|
Package gen implements engine.Ecosystem for pkg/rust (SPEC §03.3): Lock (crates.io resolution with pkg/rust/resolve, one download per crate for its checksum, NAR hash and Cargo.toml facts), Plan (per-crate-unit derivations from bob.lock alone, R-RS-005), Native (Cargo.toml, Cargo.lock, .cargo/config.toml, .bob/vendor) and PrepareDev (rustc, cargo, rust-analyzer, rust-project.json). |
|
internal/cfgtab
Package cfgtab holds bob's built-in cfg tables: `rustc --print cfg --target <triple>` of the pinned toolchain (rustc 1.95.0), one line per entry.
|
Package cfgtab holds bob's built-in cfg tables: `rustc --print cfg --target <triple>` of the pinned toolchain (rustc 1.95.0), one line per entry. |
|
internal/rsspec
Package rsspec holds the IR payloads ("spec") of the Rust node kinds.
|
Package rsspec holds the IR payloads ("spec") of the Rust node kinds. |
|
resolve
Package resolve is bob's crates.io resolver (SPEC §03.3.2, ADR 0005, R-RS-002a, R-RS-005).
|
Package resolve is bob's crates.io resolver (SPEC §03.3.2, ADR 0005, R-RS-002a, R-RS-005). |
|
services
|
|
|
postgres
Package postgres provides PostgreSQL as a service for bob tests.
|
Package postgres provides PostgreSQL as a service for bob tests. |
Click to show internal directories.
Click to hide internal directories.