mirror of
https://github.com/nix-community/naersk
synced 2024-11-22 11:43:10 +00:00
Disable --locked by default
This commit is contained in:
parent
45bee2e6b5
commit
92432c40d9
3 changed files with 5 additions and 9 deletions
|
@ -51,7 +51,7 @@ it is converted to an attribute set equivalent to `{ root = theArg; }`.
|
|||
| `cargoTestCommands` | The commands to run in the `checkPhase`. Default: `[ ''cargo $cargo_options test $cargo_test_options'' ]` |
|
||||
| `cargoTestOptions` | baaaar Default: `[ "$cargo_release" ''-j "$NIX_BUILD_CORES"'' ]` |
|
||||
| `buildInputs` | Extra `buildInputs` to all derivations. Default: `[]` |
|
||||
| `cargoOptions` | Options passed to cargo before the command (cargo OPTIONS <cmd>) used by the default cargoBuild Default: `[ "--locked" "-Z" "unstable-options" ]` |
|
||||
| `cargoOptions` | Options passed to cargo before the command (cargo OPTIONS <cmd>) used by the default cargoBuild Default: `[ "-Z" "unstable-options" ]` |
|
||||
| `doDoc` | When true, `cargo doc` is run and a new output `doc` is generated. Default: `false` |
|
||||
| `release` | When true, all cargo builds are run with `--release`. sets cargo_release Default: `true` |
|
||||
| `override` | An override for all derivations involved in the build. Default: `(x: x)` |
|
||||
|
|
|
@ -47,7 +47,7 @@ let
|
|||
# Options passed to cargo before the command (cargo OPTIONS <cmd>)
|
||||
# used by the default cargoBuild
|
||||
cargoOptions =
|
||||
allowFun attrs0 "cargoOptions" [ "--locked" "-Z" "unstable-options" ];
|
||||
allowFun attrs0 "cargoOptions" [ "-Z" "unstable-options" ];
|
||||
|
||||
# When true, `cargo doc` is run and a new output `doc` is generated.
|
||||
doDoc = attrs0.doDoc or false;
|
||||
|
|
10
test.nix
10
test.nix
|
@ -110,11 +110,7 @@ rec
|
|||
doDoc = true;
|
||||
};
|
||||
|
||||
simple-dep-patched = naersk.buildPackage
|
||||
{ root = ./test/simple-dep-patched;
|
||||
# TODO: the lockfile needs to be regenerated
|
||||
cargoOptions = builtins.filter (x: x != "--locked");
|
||||
};
|
||||
simple-dep-patched = ./test/simple-dep-patched;
|
||||
|
||||
dummyfication = naersk.buildPackage ./test/dummyfication;
|
||||
dummyfication_test = pkgs.runCommand
|
||||
|
@ -124,12 +120,12 @@ rec
|
|||
|
||||
git-dep = naersk.buildPackage {
|
||||
root = ./test/git-dep;
|
||||
cargoOptions = [ "--locked" ];
|
||||
cargoOptions = (opts: opts ++ [ "--locked" ]);
|
||||
};
|
||||
|
||||
git-dep-dup = naersk.buildPackage {
|
||||
root = ./test/git-dep-dup;
|
||||
cargoOptions = [ "--locked" ];
|
||||
cargoOptions = (opts: opts ++ [ "--locked" ]);
|
||||
};
|
||||
|
||||
cargo-wildcard = naersk.buildPackage ./test/cargo-wildcard;
|
||||
|
|
Loading…
Reference in a new issue