Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov committed Oct 20, 2023
1 parent 08fa629 commit 20d988b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,10 @@ when dependencies change.
Except where noted below, all derivation attributes are delegated to
`mkCargoDerivation`, and can be used to influence its behavior.
* `buildPhaseCargoCommand` will be set to run
`cargo deny --offline check bans licenses sources`
in the workspace.
`cargo --offline $cargoExtraArgs deny $cargoDenyExtraArgs check
$cargoDenyChecks` in the workspace.
* `cargoArtifacts` will be set to `null`
* `doInstallCargoArtifacts` will be set to `false`
* `pnameSuffix` will be set to `"-deny"`

#### Required attributes
Expand Down
1 change: 1 addition & 0 deletions examples/quick-start/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "quick-start"
version = "0.1.0"
edition = "2021"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
4 changes: 4 additions & 0 deletions examples/quick-start/deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[licenses]
allow = [
"MIT"
]
2 changes: 1 addition & 1 deletion examples/quick-start/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

# Audit licenses
my-crate-deny = craneLib.cargoDeny {
inherit cargoArtifacts;
inherit src;
};

# Run tests with cargo-nextest
Expand Down

0 comments on commit 20d988b

Please sign in to comment.