Unverified Commit 28053b81 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

cargo-web: remove

6 years since the last upstream commit.  Lockfile is too old for
fetchCargoVendor.
parent 3e5b2351
Loading
Loading
Loading
Loading
+0 −55
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  openssl,
  perl,
  pkg-config,
  rustPlatform,
  CoreServices,
  Security,
  fetchpatch,
}:

rustPlatform.buildRustPackage rec {
  pname = "cargo-web";
  version = "0.6.26";

  src = fetchFromGitHub {
    owner = "koute";
    repo = pname;
    rev = version;
    sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
  };

  patches = [
    (fetchpatch {
      name = "fix-qualified-path.patch";
      url = "https://github.com/koute/cargo-web/commit/c9584542163d60d0aae6d6890509794e838e257f.patch";
      hash = "sha256-w59fXmrszptKt0llqGt0AF+0b3r9N6xUY6zQkpZnemE=";
    })
  ];

  cargoHash = "sha256-apPXSG8RV9hZ+jttn4XHhgmuLQ7344SQJna7Z/fu/mA=";

  nativeBuildInputs = [
    openssl
    perl
    pkg-config
  ];
  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
    CoreServices
    Security
  ];

  meta = with lib; {
    description = "Cargo subcommand for the client-side Web";
    mainProgram = "cargo-web";
    homepage = "https://github.com/koute/cargo-web";
    license = with licenses; [
      asl20 # or
      mit
    ];
    maintainers = with maintainers; [ clevor ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ mapAliases {
  cargo-espflash = espflash;
  cargo-kcov = throw "'cargo-kcov' has been removed due to lack of upstream maintenance"; # Added 2025-01-25
  cargo-inspect = throw "'cargo-inspect' has been removed due to lack of upstream maintenance. Upstream recommends cargo-expand."; # Added 2025-01-26
  cargo-web = throw "'cargo-web' has been removed due to lack of upstream maintenance"; # Added 2025-01-26
  cawbird = throw "cawbird has been abandoned upstream and is broken anyways due to Twitter closing its API";
  certmgr-selfsigned = certmgr; # Added 2023-11-30
  cgal_4 = throw "cgal_4 has been removed as it is obsolete use cgal instead"; # Added 2024-12-30
+0 −4
Original line number Diff line number Diff line
@@ -6619,10 +6619,6 @@ with pkgs;
  );
  buildRustCrateHelpers = callPackage ../build-support/rust/build-rust-crate/helpers.nix { };
  cargo-web = callPackage ../development/tools/rust/cargo-web {
    inherit (darwin.apple_sdk.frameworks) CoreServices Security;
  };
  cargo-flamegraph = callPackage ../development/tools/rust/cargo-flamegraph {
    inherit (darwin.apple_sdk.frameworks) Security;
    inherit (linuxPackages) perf;