diff options
author | Daniël de Kok <me@danieldk.eu> | 2021-02-11 19:12:43 +0100 |
---|---|---|
committer | Daniël de Kok <me@danieldk.eu> | 2021-02-11 20:00:13 +0100 |
commit | 7876d1c252af514423296473143964112ef88148 (patch) | |
tree | 31ce663710b8264d4d29ff8455e91423ac3205b1 /pkgs/build-support/rust | |
parent | a8efb2053fd9c1e2fea97699754b5071e94c1649 (diff) | |
download | nixpkgs-7876d1c252af514423296473143964112ef88148.tar nixpkgs-7876d1c252af514423296473143964112ef88148.tar.gz nixpkgs-7876d1c252af514423296473143964112ef88148.tar.bz2 nixpkgs-7876d1c252af514423296473143964112ef88148.tar.lz nixpkgs-7876d1c252af514423296473143964112ef88148.tar.xz nixpkgs-7876d1c252af514423296473143964112ef88148.tar.zst nixpkgs-7876d1c252af514423296473143964112ef88148.zip |
fetchCargoTarball: set default sourceRoot to the empty string
This avoids that non-buildRustPackage derivations need to specify sourceRoot when the fetcher performs root stripping.
Diffstat (limited to 'pkgs/build-support/rust')
-rw-r--r-- | pkgs/build-support/rust/fetchCargoTarball.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/rust/fetchCargoTarball.nix b/pkgs/build-support/rust/fetchCargoTarball.nix index c30e88d99b8..3b36554e707 100644 --- a/pkgs/build-support/rust/fetchCargoTarball.nix +++ b/pkgs/build-support/rust/fetchCargoTarball.nix @@ -21,7 +21,7 @@ in , src ? null , srcs ? [] , patches ? [] -, sourceRoot +, sourceRoot ? "" , hash ? "" , sha256 ? "" , cargoUpdateHook ? "" |