Commit b77532fd authored by dish's avatar dish
Browse files

near-cli: drop

Replaced with near-cli-rs, which is not packaged in nixpkgs, however I'm
not personally interested in maintaining that. Also, this package was on
version 3.4.2, when the last release seems to have been 4.0.13, which is
15 releases newer. Safe to say this wasn't being maintained in nixpkgs,
as far as I can see.
parent facbb71c
Loading
Loading
Loading
Loading
+0 −83
Original line number Diff line number Diff line
{
  "name": "near-cli",
  "version": "3.4.2",
  "description": "General purpose command line tools for interacting with NEAR Protocol",
  "engines": {
    "node": ">= 12"
  },
  "main": "index.js",
  "scripts": {
    "pretest": "rm -rf tmp-project",
    "test": "npm run test:unit && npm run test:integration",
    "test:unit": "jest",
    "test:integration": "bash ./test/index.sh",
    "lint": "eslint .",
    "fix": "eslint . --fix"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/near/near-cli.git"
  },
  "author": "Jane Degtiareva",
  "license": "(MIT AND Apache-2.0)",
  "bugs": {
    "url": "https://github.com/near/near-cli/issues"
  },
  "homepage": "https://github.com/near/near-cli#readme",
  "bin": {
    "near": "bin/near"
  },
  "devDependencies": {
    "danger": "^10.6.6",
    "lodash": "^4.17.21",
    "eslint": "^7.0.0",
    "jest": "^26.1.0",
    "strip-ansi": "^7.0.0",
    "strip-ansi-cli": "^3.0.0",
    "ts-node": "^10.4.0",
    "typescript": "^4.5.4"
  },
  "dependencies": {
    "analytics-node": "^6.1.0",
    "ascii-table": "0.0.9",
    "bn.js": "^5.1.1",
    "bs58": "^4.0.1",
    "chalk": "^4.0.0",
    "flagged-respawn": "^1.0.1",
    "is-ci": "^2.0.0",
    "jest-environment-node": "^27.0.6",
    "ncp": "^2.0.0",
    "near-api-js": "^0.44.2",
    "near-seed-phrase": "^0.2.0",
    "open": "^8.0.7",
    "rimraf": "^3.0.0",
    "stoppable": "^1.1.0",
    "tcp-port-used": "^1.0.1",
    "update-notifier": "^5.0.0",
    "uuid": "^8.0.0",
    "v8flags": "^3.1.3",
    "yargs": "^16.0.3"
  },
  "optionalDependencies": {
    "@ledgerhq/hw-transport-node-hid": "^6.1.0",
    "near-ledger-js": "^0.2.0"
  },
  "keywords": [
    "blockchain",
    "crypto",
    "dapps",
    "distributed",
    "applications",
    "distributed applications"
  ],
  "files": [
    "bin",
    "commands",
    "middleware",
    "utils",
    "config.js",
    "get-config.js",
    "test_environment.js",
    "context"
  ]
}
+0 −53
Original line number Diff line number Diff line
{
  lib,
  mkYarnPackage,
  fetchFromGitHub,
  fetchYarnDeps,
}:

mkYarnPackage rec {
  pname = "near-cli";
  version = "3.4.2";

  src = fetchFromGitHub {
    owner = "near";
    repo = "near-cli";
    rev = "v${version}";
    hash = "sha256-C+viNYk+6BA11cdi5GqARU3QTTONTR2B2VEZf/SeeSQ=";
  };

  packageJSON = ./package.json;

  offlineCache = fetchYarnDeps {
    yarnLock = "${src}/yarn.lock";
    hash = "sha256-G/Y8xGGOlXH37Bup7mKhEaNh05GTP5CC9e/Xw4TBNMU=";
  };

  doDist = false;

  installPhase = ''
    runHook preInstall

    mkdir -p "$out/lib/node_modules"
    mv deps/near-cli "$out/lib/node_modules"
    rm "$out/lib/node_modules/near-cli/node_modules"
    mv node_modules "$out/lib/node_modules/near-cli"

    mkdir -p "$out/bin"
    ln -s "$out/lib/node_modules/near-cli/bin/near" "$out/bin"

    runHook postInstall
  '';

  meta = {
    changelog = "https://github.com/near/near-cli/blob/${src.rev}/CHANGELOG.md";
    description = "General purpose command line tools for interacting with NEAR Protocol";
    homepage = "https://github.com/near/near-cli";
    license = with lib.licenses; [
      asl20
      mit
    ];
    mainProgram = "near";
    maintainers = with lib.maintainers; [ ekleog ];
  };
}
+1 −1
Original line number Diff line number Diff line
@@ -226,7 +226,7 @@ mapAliases {
  meshcommander = throw "meshcommander was removed because it was abandoned upstream"; # added 2024-12-02
  inherit (pkgs) mocha; # Added 2025-11-04
  musescore-downloader = pkgs.dl-librescore; # added 2023-08-19
  inherit (pkgs) near-cli; # added 2023-09-09
  near-cli = throw "'near-cli' has been removed as upstream has deprecated it and archived the source code repo"; # Added 2025-11-10
  neovim = pkgs.neovim-node-client; # added 2024-11-13
  node-inspector = throw "node-inspector was removed because it was broken"; # added 2023-08-21
  inherit (pkgs) node-gyp; # added 2024-08-13
+1 −0
Original line number Diff line number Diff line
@@ -1068,6 +1068,7 @@ mapAliases {
  nasc = throw "'nasc' has been removed as it was unmaintained and depends on deprecated webkitgtk_4_0"; # Added 2025-10-09
  nats-streaming-server = throw "'nats-streaming-server' has been removed as critical bug fixes and security fixes will no longer be performed as of June of 2023"; # added 2025-10-13
  ncdu_2 = throw "'ncdu_2' has been renamed to/replaced by 'ncdu'"; # Converted to throw 2025-10-27
  near-cli = throw "'near-cli' has been removed as upstream has deprecated it and archived the source code repo"; # Added 2025-11-10
  neardal = throw "neardal has been removed because it has been marked as broken since at least November 2024."; # Added 2025-09-29
  neocities-cli = throw "'neocities-cli' has been renamed to/replaced by 'neocities'"; # Converted to throw 2025-10-27
  netbox_4_1 = throw "netbox 4.1 series has been removed as it was EOL"; # Added 2025-10-14