mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
treewide: drop workarounds for cargo --frozen
Since 4816a73bb5
("rustPlatform: --frozen -> --offline"), these are
no longer necessary!
This commit is contained in:
parent
e689185261
commit
b08a915532
@ -19,9 +19,6 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-uuHPJe+1VsnLRGbHtgTMrib6Tk359cwTDVfvtHnDToo=";
|
||||
|
||||
# Fixes a lock issue
|
||||
preConfigure = "cargo update --offline";
|
||||
|
||||
buildInputs = [
|
||||
linux-pam
|
||||
];
|
||||
|
@ -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";
|
||||
|
@ -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 ]
|
||||
|
@ -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 = [
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -33,10 +33,6 @@ buildPythonPackage rec {
|
||||
|
||||
buildAndTestSubdir = "quil-py";
|
||||
|
||||
preConfigure = ''
|
||||
cargo metadata --offline
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
|
@ -100,12 +100,6 @@ buildPythonPackage rec {
|
||||
Security
|
||||
];
|
||||
|
||||
# Cargo.lock is outdated
|
||||
# TODO: remove at next release
|
||||
preConfigure = ''
|
||||
cargo update --offline
|
||||
'';
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
huggingface-hub
|
||||
|
@ -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";
|
||||
|
@ -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"
|
||||
|
@ -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/";
|
||||
|
@ -12,9 +12,6 @@ rustPlatform.buildRustPackage rec {
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-s/oGv7/0LgNpdGu6dnvvbxDgFDvcvcHL01dSPxhMVWE=";
|
||||
preConfigure = ''
|
||||
cargo metadata --offline
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
outputs = [ "out" "lib" ];
|
||||
|
||||
# Cargo.lock is outdated
|
||||
preConfigure = ''
|
||||
cargo metadata --offline
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput "lib" "$lib"
|
||||
'';
|
||||
|
@ -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; {
|
||||
|
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user