Merge pull request #113176 from danieldk/cargoDepsName

buildRustPackage: add cargoDepsName attribute
This commit is contained in:
Graham Christensen
2021-02-23 10:02:45 -05:00
committed by GitHub
2 changed files with 32 additions and 1 deletions

View File

@@ -23,6 +23,9 @@
# Legacy hash
, cargoSha256 ? ""
# Name for the vendored dependencies tarball
, cargoDepsName ? name
, src ? null
, srcs ? null
, unpackPhase ? null
@@ -60,7 +63,8 @@ let
cargoDeps = if cargoVendorDir == null
then fetchCargoTarball ({
inherit name src srcs sourceRoot unpackPhase cargoUpdateHook;
inherit src srcs sourceRoot unpackPhase cargoUpdateHook;
name = cargoDepsName;
hash = cargoHash;
patches = cargoPatches;
sha256 = cargoSha256;