Skip to content

Commit

Permalink
fix ipetkov#404 - lib/cargoTarpaulin: lowercase --out xml argument (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp authored Oct 1, 2023
1 parent af842d7 commit a863ce3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ Except where noted below, all derivation attributes are delegated to
- Default value: `""`
* `cargoTarpaulinExtraArgs`: additional flags to be passed in the cargo
tarpaulin invocation
- Default value: `"--skip-clean --out Xml --output-dir $out"`
- Default value: `"--skip-clean --out xml --output-dir $out"`
* `doNotLinkInheritedArtifacts` will be set to `true` if not specified.

#### Native build dependencies
Expand Down
7 changes: 5 additions & 2 deletions lib/cargoTarpaulin.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{ mkCargoDerivation
, cargo-tarpaulin
, lib
}:

let
xml = if lib.versionOlder cargo-tarpaulin.version "0.27.0" then "Xml" else "xml";
in
{ cargoExtraArgs ? ""
, cargoTarpaulinExtraArgs ? "--skip-clean --out Xml --output-dir $out"
, cargoTarpaulinExtraArgs ? "--skip-clean --out ${xml} --output-dir $out"
, ...
}@origArgs:
let
Expand Down

0 comments on commit a863ce3

Please sign in to comment.