Skip to content

Add submodules as an input to flake.nix #42

@quapka

Description

@quapka

Some dependencies are included as submodules. Nix commands, such as nix build or nix run, can fail during the Gradle build due to missing paths to the modules they depend on. This concerns mainly, or maybe only, the JC SDKs.

[...]
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':applet'.
> Invalid JavaCard SDK path : /build/7blnr0b74779385ki7pzr7ah4h9q5xdg-source/ext/sdks/jc320v24.0_kit
[...]

The solution for now is to include ?submodules=1 or as part of the target path, such as nix run '?submodules=1#...'. It should be possible to simplify this by explicitly including the submodules within the flakes input. However, this does not work properly atm.

I'll add the supposed solution, but until the above issue is fixed, it might not work as expected (caching also comes into the picture).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions