buildRustPackage: add documentation on how to create cargo.lock patches

This commit is contained in:
Jörg Thalheim
2020-06-05 10:41:46 +01:00
parent fb6c3cee64
commit f0396574ab
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -130,6 +130,7 @@ stdenv.mkDerivation (args // {
# give a friendlier error msg.
if ! [ -e $srcLockfile ]; then
echo "ERROR: Missing Cargo.lock from src. Expected to find it at: $srcLockfile"
echo "Hint: You can use the cargoPatches attribute to add a Cargo.lock manually to the build."
exit 1
fi