mirror of
https://github.com/nix-community/naersk
synced 2024-11-15 00:17:10 +00:00
Merge pull request #49 from nmattia/nm-disable-doc
Disable doDoc by default
This commit is contained in:
commit
548f0aa936
3 changed files with 14 additions and 12 deletions
|
@ -50,7 +50,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_release[@]}" -j $NIX_BUILD_CORES'' ]` |
|
| `cargoTestCommands` | The commands to run in the `checkPhase`. Default: `[ ''cargo "''${cargo_options[@]}" test "''${cargo_release[@]}" -j $NIX_BUILD_CORES'' ]` |
|
||||||
| `buildInputs` | Extra `buildInputs` to all derivations. Default: `[]` |
|
| `buildInputs` | Extra `buildInputs` to all derivations. Default: `[]` |
|
||||||
| `cargoOptions` | Options passed to cargo before the command (cargo OPTIONS <cmd>) Default: `[]` |
|
| `cargoOptions` | Options passed to cargo before the command (cargo OPTIONS <cmd>) Default: `[]` |
|
||||||
| `doDoc` | When true, `cargo doc` is run and a new output `doc` is generated. Default: `true` |
|
| `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`. Default: `true` |
|
| `release` | When true, all cargo builds are run with `--release`. Default: `true` |
|
||||||
| `override` | An override for all derivations involved in the build. Default: `(x: x)` |
|
| `override` | An override for all derivations involved in the build. Default: `(x: x)` |
|
||||||
| `singleStep` | When true, no intermediary (dependency-only) build is run. Enabling `singleStep` greatly reduces the incrementality of the builds. Default: `false` |
|
| `singleStep` | When true, no intermediary (dependency-only) build is run. Enabling `singleStep` greatly reduces the incrementality of the builds. Default: `false` |
|
||||||
|
|
|
@ -25,7 +25,7 @@ let
|
||||||
# Options passed to cargo before the command (cargo OPTIONS <cmd>)
|
# Options passed to cargo before the command (cargo OPTIONS <cmd>)
|
||||||
cargoOptions = attrs0.cargoOptions or [];
|
cargoOptions = attrs0.cargoOptions or [];
|
||||||
# When true, `cargo doc` is run and a new output `doc` is generated.
|
# When true, `cargo doc` is run and a new output `doc` is generated.
|
||||||
doDoc = attrs0.doDoc or true;
|
doDoc = attrs0.doDoc or false;
|
||||||
# When true, all cargo builds are run with `--release`.
|
# When true, all cargo builds are run with `--release`.
|
||||||
release = attrs0.release or true;
|
release = attrs0.release or true;
|
||||||
# An override for all derivations involved in the build.
|
# An override for all derivations involved in the build.
|
||||||
|
|
20
test.nix
20
test.nix
|
@ -16,7 +16,6 @@ rec
|
||||||
'';
|
'';
|
||||||
|
|
||||||
docparse = naersk.buildPackage {
|
docparse = naersk.buildPackage {
|
||||||
doDoc = false;
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
root = ./docparse;
|
root = ./docparse;
|
||||||
src = builtins.filterSource (
|
src = builtins.filterSource (
|
||||||
|
@ -89,7 +88,6 @@ rec
|
||||||
# "targets" is broken
|
# "targets" is broken
|
||||||
#lucet = naersk.buildPackage lucetSrc
|
#lucet = naersk.buildPackage lucetSrc
|
||||||
#{ nativeBuildInputs = [ pkgs.cmake pkgs.python3 ] ;
|
#{ nativeBuildInputs = [ pkgs.cmake pkgs.python3 ] ;
|
||||||
#doDoc = false;
|
|
||||||
#doCheck = false;
|
#doCheck = false;
|
||||||
#targets =
|
#targets =
|
||||||
#[ "lucetc"
|
#[ "lucetc"
|
||||||
|
@ -107,6 +105,11 @@ rec
|
||||||
|
|
||||||
simple-dep = naersk.buildPackage ./test/simple-dep;
|
simple-dep = naersk.buildPackage ./test/simple-dep;
|
||||||
|
|
||||||
|
simple-dep-doc = naersk.buildPackage
|
||||||
|
{ src = ./test/simple-dep;
|
||||||
|
doDoc = true;
|
||||||
|
};
|
||||||
|
|
||||||
simple-dep-patched = naersk.buildPackage ./test/simple-dep-patched;
|
simple-dep-patched = naersk.buildPackage ./test/simple-dep-patched;
|
||||||
|
|
||||||
dummyfication = naersk.buildPackage ./test/dummyfication;
|
dummyfication = naersk.buildPackage ./test/dummyfication;
|
||||||
|
@ -120,14 +123,13 @@ rec
|
||||||
cargoOptions = [ "--locked" ];
|
cargoOptions = [ "--locked" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
workspace = naersk.buildPackage {
|
workspace = naersk.buildPackage ./test/workspace;
|
||||||
src = ./test/workspace;
|
|
||||||
doDoc = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
workspace-patched = naersk.buildPackage {
|
workspace-patched = naersk.buildPackage ./test/workspace-patched;
|
||||||
src = ./test/workspace-patched;
|
|
||||||
doDoc = false;
|
workspace-doc = naersk.buildPackage
|
||||||
|
{ src = ./test/workspace;
|
||||||
|
doDoc = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fails with some remarshal error
|
# Fails with some remarshal error
|
||||||
|
|
Loading…
Reference in a new issue