treewide: drop workarounds for cargo --frozen

Since 4816a73bb5 ("rustPlatform: --frozen -> --offline"), these are
no longer necessary!
This commit is contained in:
Alyssa Ross 2024-05-18 11:35:02 +02:00
parent e689185261
commit b08a915532
16 changed files with 0 additions and 77 deletions

View File

@ -19,9 +19,6 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-uuHPJe+1VsnLRGbHtgTMrib6Tk359cwTDVfvtHnDToo=";
# Fixes a lock issue
preConfigure = "cargo update --offline";
buildInputs = [
linux-pam
];

View File

@ -53,11 +53,6 @@ rustPlatform.buildRustPackage rec {
darwin.apple_sdk.frameworks.Security
];
# Cargo.lock is outdated
postConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "Markdown slideshows in Rust";
homepage = "https://github.com/axodotdev/slippy";

View File

@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-AhQCfLCoJU7o8s+XL3hDOPmZi9QjOxXSA9uglA1KSuY=";
# Cargo.lock is outdated
preConfigure = ''
cargo metadata --offline
'';
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
buildInputs = lib.optionals dbusSupport [ dbus ]
++ lib.optionals useOpenSSL [ openssl ]

View File

@ -47,11 +47,6 @@ rustPlatform.buildRustPackage rec {
sed -i "#/bin/celeste#d" justfile
'';
# Cargo.lock is outdated
preConfigure = ''
cargo update --offline
'';
RUSTC_BOOTSTRAP = 1;
nativeBuildInputs = [

View File

@ -24,11 +24,6 @@ rustPlatform.buildRustPackage rec {
darwin.apple_sdk.frameworks.SystemConfiguration
];
# Cargo.lock is outdated
preConfigure = ''
cargo update --offline
'';
meta = with lib; {
description = "A simple and adorable sysinfo utility written in Rust";
homepage = "https://github.com/devraza/bunbun";

View File

@ -16,11 +16,6 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-Z7uYOjMNxsEmsEXDOIr1zIq4nCgHvHIqpRnRH037b8g=";
# Cargo.lock is outdated
postConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "Config files for esbuild";
homepage = "https://github.com/bpierre/esbuild-config";

View File

@ -22,11 +22,6 @@ let
cargoHash = "sha256-4o3ctun/8VcBRuj+j0Yaawdkyn6Z6LPp+FTyhPxQWU8=";
# Cargo.lock is outdated
preConfigure = ''
cargo update --offline
'';
meta = with lib; {
description = "A tool to make production Rust binaries auditable";
mainProgram = "cargo-auditable";

View File

@ -33,10 +33,6 @@ buildPythonPackage rec {
buildAndTestSubdir = "quil-py";
preConfigure = ''
cargo metadata --offline
'';
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook

View File

@ -100,12 +100,6 @@ buildPythonPackage rec {
Security
];
# Cargo.lock is outdated
# TODO: remove at next release
preConfigure = ''
cargo update --offline
'';
dependencies = [
numpy
huggingface-hub

View File

@ -42,11 +42,6 @@ rustPlatform.buildRustPackage rec {
# tests require internet access
doCheck = false;
# Cargo.lock is outdated
preConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "A cargo subcommand to manage local registries";
mainProgram = "cargo-local-registry";

View File

@ -27,12 +27,6 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-sMyK1v4pJmmlN47mvgUkpLBjcpmT346VSp984IpvVWY=";
# Prepare the Cargo.lock for offline use.
# See https://github.com/NixOS/nixpkgs/issues/261412
postConfigure = ''
cargo metadata --offline > /dev/null
'';
buildNoDefaultFeatures = true;
buildFeatures = [
"native-tls"

View File

@ -44,11 +44,6 @@ rustPlatform.buildRustPackage rec {
#
checkType = "debug";
# Cargo.lock is outdated
postPatch = ''
cargo metadata --offline
'';
meta = with lib; {
description = "GIF encoder based on libimagequant (pngquant)";
homepage = "https://gif.ski/";

View File

@ -12,9 +12,6 @@ rustPlatform.buildRustPackage rec {
};
cargoSha256 = "sha256-s/oGv7/0LgNpdGu6dnvvbxDgFDvcvcHL01dSPxhMVWE=";
preConfigure = ''
cargo metadata --offline
'';
nativeBuildInputs = [ installShellFiles ];

View File

@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
outputs = [ "out" "lib" ];
# Cargo.lock is outdated
preConfigure = ''
cargo metadata --offline
'';
postInstall = ''
moveToOutput "lib" "$lib"
'';

View File

@ -16,11 +16,6 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-rVJAaeg27SdM8cTx12rKLIGEYtXUhLHXUYpT78oVNlo=";
# Cargo.lock is outdated.
preConfigure = ''
cargo update --offline
'';
postInstall = "make PREFIX=$out copy-data";
meta = with lib; {

View File

@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
nativeCheckInputs = [ perl ];
# Cargo.lock is outdated
preConfigure = ''
cargo update --offline
'';
# tests are locale sensitive
preCheck = ''
export LANG=${if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"}