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=";
|
cargoHash = "sha256-uuHPJe+1VsnLRGbHtgTMrib6Tk359cwTDVfvtHnDToo=";
|
||||||
|
|
||||||
# Fixes a lock issue
|
|
||||||
preConfigure = "cargo update --offline";
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
linux-pam
|
linux-pam
|
||||||
];
|
];
|
||||||
|
|
|
@ -53,11 +53,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
darwin.apple_sdk.frameworks.Security
|
darwin.apple_sdk.frameworks.Security
|
||||||
];
|
];
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
postConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Markdown slideshows in Rust";
|
description = "Markdown slideshows in Rust";
|
||||||
homepage = "https://github.com/axodotdev/slippy";
|
homepage = "https://github.com/axodotdev/slippy";
|
||||||
|
|
|
@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-AhQCfLCoJU7o8s+XL3hDOPmZi9QjOxXSA9uglA1KSuY=";
|
cargoHash = "sha256-AhQCfLCoJU7o8s+XL3hDOPmZi9QjOxXSA9uglA1KSuY=";
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
|
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
|
||||||
buildInputs = lib.optionals dbusSupport [ dbus ]
|
buildInputs = lib.optionals dbusSupport [ dbus ]
|
||||||
++ lib.optionals useOpenSSL [ openssl ]
|
++ lib.optionals useOpenSSL [ openssl ]
|
||||||
|
|
|
@ -47,11 +47,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
sed -i "#/bin/celeste#d" justfile
|
sed -i "#/bin/celeste#d" justfile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo update --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
RUSTC_BOOTSTRAP = 1;
|
RUSTC_BOOTSTRAP = 1;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -24,11 +24,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
];
|
];
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo update --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple and adorable sysinfo utility written in Rust";
|
description = "A simple and adorable sysinfo utility written in Rust";
|
||||||
homepage = "https://github.com/devraza/bunbun";
|
homepage = "https://github.com/devraza/bunbun";
|
||||||
|
|
|
@ -16,11 +16,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-Z7uYOjMNxsEmsEXDOIr1zIq4nCgHvHIqpRnRH037b8g=";
|
cargoHash = "sha256-Z7uYOjMNxsEmsEXDOIr1zIq4nCgHvHIqpRnRH037b8g=";
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
postConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Config files for esbuild";
|
description = "Config files for esbuild";
|
||||||
homepage = "https://github.com/bpierre/esbuild-config";
|
homepage = "https://github.com/bpierre/esbuild-config";
|
||||||
|
|
|
@ -22,11 +22,6 @@ let
|
||||||
|
|
||||||
cargoHash = "sha256-4o3ctun/8VcBRuj+j0Yaawdkyn6Z6LPp+FTyhPxQWU8=";
|
cargoHash = "sha256-4o3ctun/8VcBRuj+j0Yaawdkyn6Z6LPp+FTyhPxQWU8=";
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo update --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A tool to make production Rust binaries auditable";
|
description = "A tool to make production Rust binaries auditable";
|
||||||
mainProgram = "cargo-auditable";
|
mainProgram = "cargo-auditable";
|
||||||
|
|
|
@ -33,10 +33,6 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
buildAndTestSubdir = "quil-py";
|
buildAndTestSubdir = "quil-py";
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
rustPlatform.cargoSetupHook
|
rustPlatform.cargoSetupHook
|
||||||
rustPlatform.maturinBuildHook
|
rustPlatform.maturinBuildHook
|
||||||
|
|
|
@ -100,12 +100,6 @@ buildPythonPackage rec {
|
||||||
Security
|
Security
|
||||||
];
|
];
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
# TODO: remove at next release
|
|
||||||
preConfigure = ''
|
|
||||||
cargo update --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
numpy
|
numpy
|
||||||
huggingface-hub
|
huggingface-hub
|
||||||
|
|
|
@ -42,11 +42,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
# tests require internet access
|
# tests require internet access
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A cargo subcommand to manage local registries";
|
description = "A cargo subcommand to manage local registries";
|
||||||
mainProgram = "cargo-local-registry";
|
mainProgram = "cargo-local-registry";
|
||||||
|
|
|
@ -27,12 +27,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-sMyK1v4pJmmlN47mvgUkpLBjcpmT346VSp984IpvVWY=";
|
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;
|
buildNoDefaultFeatures = true;
|
||||||
buildFeatures = [
|
buildFeatures = [
|
||||||
"native-tls"
|
"native-tls"
|
||||||
|
|
|
@ -44,11 +44,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
#
|
#
|
||||||
checkType = "debug";
|
checkType = "debug";
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
postPatch = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "GIF encoder based on libimagequant (pngquant)";
|
description = "GIF encoder based on libimagequant (pngquant)";
|
||||||
homepage = "https://gif.ski/";
|
homepage = "https://gif.ski/";
|
||||||
|
|
|
@ -12,9 +12,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-s/oGv7/0LgNpdGu6dnvvbxDgFDvcvcHL01dSPxhMVWE=";
|
cargoSha256 = "sha256-s/oGv7/0LgNpdGu6dnvvbxDgFDvcvcHL01dSPxhMVWE=";
|
||||||
preConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" ];
|
outputs = [ "out" "lib" ];
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo metadata --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
moveToOutput "lib" "$lib"
|
moveToOutput "lib" "$lib"
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -16,11 +16,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-rVJAaeg27SdM8cTx12rKLIGEYtXUhLHXUYpT78oVNlo=";
|
cargoHash = "sha256-rVJAaeg27SdM8cTx12rKLIGEYtXUhLHXUYpT78oVNlo=";
|
||||||
|
|
||||||
# Cargo.lock is outdated.
|
|
||||||
preConfigure = ''
|
|
||||||
cargo update --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = "make PREFIX=$out copy-data";
|
postInstall = "make PREFIX=$out copy-data";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -23,11 +23,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [ perl ];
|
nativeCheckInputs = [ perl ];
|
||||||
|
|
||||||
# Cargo.lock is outdated
|
|
||||||
preConfigure = ''
|
|
||||||
cargo update --offline
|
|
||||||
'';
|
|
||||||
|
|
||||||
# tests are locale sensitive
|
# tests are locale sensitive
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LANG=${if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"}
|
export LANG=${if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user