Skip to content

How to build every dependency of a project (given a dub.json / dub.selections.json)? #2209

@Panke

Description

@Panke

I am trying to improve dub2nix and make Nix work better with D. To this end I want to build all dependencies of a package without building that package itself. I tried to fetch the dependencies from a dub.selections.json file and build them, but this fails:

`[nix-shell:~/dlang/dlang-mix-meson-playground]$ HOME=. dub fetch stdx-allocator@2.77.5
Fetching stdx-allocator 2.77.5...

[nix-shell:~/dlang/dlang-mix-meson-playground]$ dub add-local .dub/packages/stdx-allocator-2.77.5/stdx-allocator 2.77.5
Registered package: stdx-allocator (version: 2.77.5)

[nix-shell:~/dlang/dlang-mix-meson-playground]$ HOME=. dub build --skip-registry=all stdx-allocator@2.77.5
No package stdx-allocator was found matching the dependency 2.77.5
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions