Skip to content

can't get barebones example building #109

Answered by yusdacra
goosetherumfoodle asked this question in Q&A
Discussion options

You must be logged in to vote

nix-cargo-integration doesn't provide any default packages. You need to use the outputs.defaults.package option to set a default package. Like so:

# flake.nix
{
  # ...
  outputs = inputs:
    inputs.nci.lib.makeOutputs {
      # ...
      config = common: {
        outputs.defaults = {
          package = "rust-hello";
        };
      };
      # ...
    };
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@goosetherumfoodle
Comment options

@yusdacra
Comment options

Answer selected by goosetherumfoodle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #108 on February 10, 2023 06:56.