Skip to content

Commit

Permalink
Add additionalCargoLock to README
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia committed Jun 18, 2024
1 parent 1127af3 commit 425f40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ Note that you shouldn't call `overrideAttrs` on a derivation built by Naersk
| `root` | Used by `naersk` to read the `Cargo.toml` and `Cargo.lock` files. May be different from `src`. When `src` is not set, `root` is (indirectly) used as `src`. |
| `gitAllRefs` | Whether to fetch all refs while fetching Git dependencies. Useful if the wanted revision isn't in the default branch. Requires Nix 2.4+. Default: `false` |
| `gitSubmodules` | Whether to fetch submodules while fetching Git dependencies. Requires Nix 2.4+. Default: `false` |
| `additionalCargoLock` | Additional cargo lock used to specify crates required for build |
| `cratesDownloadUrl` | Url for downloading crates from an alternative source Default: `"https://crates.io"` |
| `cargoBuild` | The command to use for the build. The argument must be a function modifying the default value. <br/> Default: `''cargo $cargo_options build $cargo_build_options >> $cargo_build_output_json''` |
| `cargoBuildOptions` | Options passed to cargo build, i.e. `cargo build <OPTS>`. These options can be accessed during the build through the environment variable `cargo_build_options`. <br/> Note: naersk relies on the `--out-dir out` option and the `--message-format` option. The `$cargo_message_format` variable is set based on the cargo version.<br/> Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces. <br/> The argument must be a function modifying the default value. <br/> Default: `[ "$cargo_release" ''-j "$NIX_BUILD_CORES"'' "--message-format=$cargo_message_format" ]` |
Expand Down
1 change: 1 addition & 0 deletions config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ let
# 2.4+.
gitSubmodules = attrs0.gitSubmodules or false;

# Additional cargo lock used to specify crates required for build
additionalCargoLock = attrs0.additionalCargoLock or null;

# Url for downloading crates from an alternative source
Expand Down

0 comments on commit 425f40a

Please sign in to comment.