fetchCargoTarball: set default sourceRoot to the empty string

This avoids that non-buildRustPackage derivations need to specify
sourceRoot when the fetcher performs root stripping.
This commit is contained in:
Daniël de Kok 2021-02-11 19:12:43 +01:00
parent a8efb2053f
commit 7876d1c252

View file

@ -21,7 +21,7 @@ in
, src ? null
, srcs ? []
, patches ? []
, sourceRoot
, sourceRoot ? ""
, hash ? ""
, sha256 ? ""
, cargoUpdateHook ? ""