rustPlatform: --frozen -> --offline

--frozen is stricter than we need in Nixpkgs.  If a Cargo.lock is
slightly wrong, or (in my use case) if building a subproject that is
not a member of the top-level workspace, but the correct Cargo.lock
can be entirely resolved from the existing top-level Cargo.lock, it
should be deterministic, and shouldn't cause any problems, to let
cargo generate the new Cargo.lock.  This should result in less need to
bother upstreams about fixing their Cargo.lock files in cases where
they could have been automatically fixed.
This commit is contained in:
Alyssa Ross 2024-05-10 18:25:05 +02:00
parent fc246ead19
commit 4816a73bb5
4 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ cargoBuildHook() {
set -x
@setEnv@ cargo build -j $NIX_BUILD_CORES \
--target @rustHostPlatformSpec@ \
--frozen \
--offline \
${cargoBuildProfileFlag} \
${cargoBuildNoDefaultFeaturesFlag} \
${cargoBuildFeaturesFlag} \

View File

@ -29,7 +29,7 @@ cargoCheckHook() {
fi
argstr="${cargoCheckProfileFlag} ${cargoCheckNoDefaultFeaturesFlag} ${cargoCheckFeaturesFlag}
--target @rustHostPlatformSpec@ --frozen ${cargoTestFlags}"
--target @rustHostPlatformSpec@ --offline ${cargoTestFlags}"
(
set -x

View File

@ -29,7 +29,7 @@ cargoNextestHook() {
fi
argstr="${cargoCheckProfileFlag} ${cargoCheckNoDefaultFeaturesFlag} ${cargoCheckFeaturesFlag}
--target @rustHostPlatformSpec@ --frozen ${cargoTestFlags}"
--target @rustHostPlatformSpec@ --offline ${cargoTestFlags}"
(
set -x

View File

@ -11,7 +11,7 @@ maturinBuildHook() {
set -x
@setEnv@ maturin build \
--jobs=$NIX_BUILD_CORES \
--frozen \
--offline \
--target @rustTargetPlatformSpec@ \
--manylinux off \
--strip \