Merge pull request #38573 from kevincox/allow-null

Allow setting cargoSha256 to null.
This commit is contained in:
Jörg Thalheim 2018-04-08 08:56:52 +01:00 committed by GitHub
commit 51655575d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;