cargo-raze: drop

it has been broken for a few months, upstream repo is archived and
unmaintained
This commit is contained in:
figsoda
2026-05-04 14:39:50 -04:00
parent 3307afa9c3
commit 902f0209b1
3 changed files with 1 additions and 83 deletions
-54
View File
@@ -1,54 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
pkg-config,
curl,
libgit2,
openssl,
}:
let
version = "0.16.1";
src = fetchFromGitHub {
owner = "google";
repo = "cargo-raze";
rev = "v${version}";
hash = "sha256-dn1MrF+FYBG+vD5AfXCwmzskmKK/TXArnMWW2BAfFFQ=";
};
in
rustPlatform.buildRustPackage {
pname = "cargo-raze";
inherit src version;
sourceRoot = "${src.name}/impl";
# Make it build on Rust >1.76. Since upstream is unmaintained,
# there's no counting on them to fix this any time soon...
# See #310673 and #310125 for similar fixes
cargoPatches = [ ./rustc-serialize-fix.patch ];
cargoHash = "sha256-unx2XGi16aWvw5dceAuReMEMLGcO/JwYpx9Ewvrw3KE=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libgit2
openssl
curl
];
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
# Darwin issue: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
# https://github.com/google/cargo-raze/issues/544
ulimit -n 1024
'';
__darwinAllowLocalNetworking = true;
meta = {
description = "Generate Bazel BUILD files from Cargo dependencies";
homepage = "https://github.com/google/cargo-raze";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ elasticdog ];
};
}
@@ -1,29 +0,0 @@
diff --git a/impl/Cargo.lock b/impl/Cargo.lock
index 0c963206..7db3432f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1957,9 +1957,9 @@ dependencies = [
[[package]]
name = "rustc-serialize"
-version = "0.3.24"
+version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda"
+checksum = "fe834bc780604f4674073badbad26d7219cadfb4a2275802db12cbae17498401"
[[package]]
name = "ryu"
diff --git a/impl/Cargo.toml b/impl/Cargo.toml
index 9dd6dd99..a559febf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -38,7 +38,7 @@ itertools = "0.10.0"
log = "0.4.13"
pathdiff = "0.2.0"
regex = "1.5.5"
-rustc-serialize = "0.3.24"
+rustc-serialize = "0.3.25"
semver = { version = "1", features = ["serde"] }
serde = "1.0.120"
serde_derive = "1.0.120"
+1
View File
@@ -427,6 +427,7 @@ mapAliases {
canonicalize-jars-hook = throw "'canonicalize-jars-hook' has been renamed to/replaced by 'stripJavaArchivesHook'"; # Converted to throw 2025-10-27
cardboard = throw "cardboard has been removed because it has been marked as broken since at least November 2024."; # Added 2025-09-28
cargo-espflash = throw "'cargo-espflash' has been renamed to/replaced by 'espflash'"; # Converted to throw 2025-10-27
cargo-raze = throw "'cargo-raze' has been removed, as it is unmaintained"; # Added 2026-05-04
cargo-sync-readme = throw "'cargo-sync-readme' has been removed because upstream 404s"; # Converted to throw 2025-12-18
cargonode = throw "'cargonode' has been removed due to lack of upstream maintenance"; # Added 2025-06-18
carp = throw "'carp' has been removed due to being broken for more than a year; see RFC 180"; # Added 2026-02-05