venator: fix build
This probably wasn’t caught because, once `cargoHash` was generated, `venator.cargoDeps.vendorStaging` would have needed to be rebuilt to catch the failure. Moving `Cargo.lock` in `postPatch` is ineffective because `postPatch` is not passed to `fetchCargoVendor`. Removing `cargoRoot` is the simpler solution.
This commit is contained in:
@@ -26,7 +26,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
hash = "sha256-qjSB/XAxB/VbO4m9Gg/XP9332WaSm/d/ejSTrHRchHg=";
|
||||
};
|
||||
|
||||
cargoRoot = "venator-app";
|
||||
buildAndTestSubdir = "venator-app";
|
||||
# NOTE: don't put npmRoot here because it will break the build with "Found
|
||||
# version mismatched Tauri packages".
|
||||
@@ -35,7 +34,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
postPatch = ''
|
||||
cp ${finalAttrs.src}/venator-app/package.json .
|
||||
cp ${finalAttrs.src}/venator-app/package-lock.json .
|
||||
cp ${finalAttrs.src}/Cargo.lock venator-app/
|
||||
'';
|
||||
|
||||
cargoHash = "sha256-OLtWDJuK9fXbpjUfidLP2nKdD49cWmqWI92bhV29054=";
|
||||
|
||||
Reference in New Issue
Block a user