Merge pull request #38573 from kevincox/allow-null
Allow setting cargoSha256 to null.
This commit is contained in:
commit
51655575d3
@ -4,7 +4,7 @@ let
|
||||
inherit stdenv cacert git rust cargo-vendor;
|
||||
};
|
||||
in
|
||||
{ name, cargoSha256 ? null
|
||||
{ name, cargoSha256 ? "unset"
|
||||
, src ? null
|
||||
, srcs ? null
|
||||
, sourceRoot ? null
|
||||
@ -17,7 +17,7 @@ in
|
||||
, cargoVendorDir ? null
|
||||
, ... } @ args:
|
||||
|
||||
assert cargoVendorDir == null -> cargoSha256 != null;
|
||||
assert cargoVendorDir == null -> cargoSha256 != "unset";
|
||||
|
||||
let
|
||||
lib = stdenv.lib;
|
||||
|
Loading…
Reference in New Issue
Block a user